ref: f5e0cf3deb44195ac4bda619085017753947f5f9
parent: 6270260b03df40c9e2230079bafbf574238acc34
author: Ori Bernstein <[email protected]>
date: Mon Jul 23 18:59:09 EDT 2012
Add test for conditional if statement.
--- /dev/null
+++ b/test/condif.myr
@@ -1,0 +1,9 @@
+var x = 5
+var y = 7
+const main = {
+ if x == 7 && y == 5
+ -> 7
+ else
+ -> 9
+ ;;
+}
--- a/test/tests
+++ b/test/tests
@@ -36,6 +36,7 @@
B nestfn E 42
B closure E 55
B loop E 45
+B condif E 7
B fib E 21
B float E 1
B log-and E 0