[pypy-svn] r20857 - pypy/dist/pypy/jit/test

ericvrp at codespeak.net ericvrp at codespeak.net
Wed Dec 7 18:36:21 CET 2005


Author: ericvrp
Date: Wed Dec  7 18:36:20 2005
New Revision: 20857

Modified:
   pypy/dist/pypy/jit/test/test_tl.py
Log:
(arre, ericvrp) Added tests for sourcecode comments


Modified: pypy/dist/pypy/jit/test/test_tl.py
==============================================================================
--- pypy/dist/pypy/jit/test/test_tl.py	(original)
+++ pypy/dist/pypy/jit/test/test_tl.py	Wed Dec  7 18:36:20 2005
@@ -136,10 +136,13 @@
     PUSH -1
     PUSH 3
     BR_COND end
-somename:
-    PUSH 2
-    BR_COND label1
-end:
+somename:   ;
+    PUSH 2  //
+    BR_COND label1//
+end:// comment
+    //
+//
+//comment
 """)
     assert code == list2bytecode([PUSH,0, PUSH,1, BR_COND,6, PUSH,-1, PUSH,3, BR_COND,4, PUSH,2, BR_COND,-10])
 
@@ -151,10 +154,10 @@
     EXIT
 
 func1:
-    RETURN
+    RETURN  # comment
 
 func2:
-    ROT 3
+    ROT 3   ;comment
     ADD 
     SWAP
     RETURN""")



More information about the Pypy-commit mailing list