changeset 161:78523235f367

secret_if: new test/
author Sigurd Meldgaard <stm@daimi.au.dk>
date Mon, 07 Dec 2009 16:30:04 +0100
parents 8e7d7e891b00
children 427fbd7bd36b
files pysmcl/test/unit/test_secret_ifs.py
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/test/unit/test_secret_ifs.py	Mon Dec 07 15:30:38 2009 +0100
+++ b/pysmcl/test/unit/test_secret_ifs.py	Mon Dec 07 16:30:04 2009 +0100
@@ -24,6 +24,23 @@
 """
         self.make_test(program, expected)
 
+    def test_if3(self):
+        program = """\
+def f():
+    if(x):
+        a = 1
+    else:
+        a = 2
+"""
+        expected = """\
+def f():
+    if(x):
+        a = 1
+    else:
+        a = 2
+"""
+        self.make_test(program, expected)
+
     def test_if2(self):
         expected = """\
 def f(x, y):