Exemple #1
0
 def testZenoReduceWith2000Iterations(self):
   result, wall, user = zeno.run(lambda:zeno.zenoreduce(lambda x,y: x+1, xrange(2000), 0))
   assert 2000 == result
   assert wall >= user >= 0.0
Exemple #2
0
 def testZenoReduceWith2000Iterations(self):
     result, wall, user = zeno.run(
         lambda: zeno.zenoreduce(lambda x, y: x + 1, xrange(2000), 0))
     assert 2000 == result
     assert wall >= user >= 0.0
Exemple #3
0
 def testWiringOfSingleton(self):
   result, wall, user = zeno.run(lambda:zeno.zenoreduce(lambda x,y: x+y, [1,2,3], 0))
   assert 6 == result
   assert wall >= user >= 0.0
Exemple #4
0
 def testWiringOfSingleton(self):
     result, wall, user = zeno.run(
         lambda: zeno.zenoreduce(lambda x, y: x + y, [1, 2, 3], 0))
     assert 6 == result
     assert wall >= user >= 0.0