changeset 272:289611112829

test_runtime_sugar: updated test to match new way
author Sigurd Meldgaard <stm@daimi.au.dk>
date Wed, 10 Mar 2010 15:18:29 +0100
parents 5b20b95549f3
children cdbabd388ec7
files pysmcl/test/unit/test_sugar.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/test/unit/test_sugar.py	Wed Mar 10 15:12:36 2010 +0100
+++ b/pysmcl/test/unit/test_sugar.py	Wed Mar 10 15:18:29 2010 +0100
@@ -17,11 +17,14 @@
 """
         expected = """\
 def f(runtime):
-    a = runtime.input(3)
-    b = get(runtime, "Nr:")
-    c = yield(runtime.output(a + b[0]))
-    print c
-    returnValue(a)
+    if(1):
+        a = input(runtime, 3)
+        b = get("Nr:")
+        c = yield(runtime.output(a + b[0]))
+        print c
+        returnValue(a)
+    else:
+        yield(0)
 """
 
         self.make_test(program, expected)