[pypy-svn] r62625 - pypy/branch/pyjitpl5/pypy/jit/tl

fijal at codespeak.net fijal at codespeak.net
Fri Mar 6 02:50:01 CET 2009


Author: fijal
Date: Fri Mar  6 02:50:00 2009
New Revision: 62625

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
Log:
Add asserts


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py	Fri Mar  6 02:50:00 2009
@@ -6,6 +6,7 @@
     while i < 100:
         i = i + 3
     print i
+    assert i == 102
 
 def f1():
     print "simple loop with inplace_add"
@@ -14,14 +15,16 @@
     while i < 100:
         i += 3
     print i
+    assert i == 102
 
 def f():
-    print 543210
+    print "range object, but outside the loop"
 
     s = 0
     for i in range(100):
         # XXX implement inplace_add method for ints
         s = s + i
-    print s        # should print 102
+    print s
+    assert s == 4950
 
 f()



More information about the Pypy-commit mailing list