changeset 170:a75448236cc7

test: testing the rewriting of return to returnValue
author Sigurd Meldgaard <stm@daimi.au.dk>
date Fri, 11 Dec 2009 11:34:07 +0100
parents 196ecd8eeea4
children 32d6f31a8be2
files pysmcl/test/unit/test_sugar.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/test/unit/test_sugar.py	Fri Dec 11 11:31:16 2009 +0100
+++ b/pysmcl/test/unit/test_sugar.py	Fri Dec 11 11:34:07 2009 +0100
@@ -13,6 +13,7 @@
     b = get("Nr:")
     c = output(a + b[0])
     print c
+    return a
 """
         expected = """\
 def f(runtime):
@@ -20,6 +21,7 @@
     b = get(runtime, "Nr:")
     c = yield(runtime.output(a + b[0]))
     print c
+    returnValue(a)
 """
 
         self.make_test(program, expected)