shithub: mc

Download patch

ref: c97f69cb8e5300d8048604863b451e3685e8f105
parent: 4403e8080fea47d509fa2ca264feff1cccceefbe
author: Ori Bernstein <[email protected]>
date: Mon Jul 23 19:21:45 EDT 2012

Save tests for both conditional true and false.

--- a/test/condif.myr
+++ /dev/null
@@ -1,9 +1,0 @@
-var x = 5
-var y = 7
-const main = {
-	if x == 7 && y == 5
-		-> 7
-	else
-		-> 9
-	;;
-}
--- /dev/null
+++ b/test/condiffalse.myr
@@ -1,0 +1,9 @@
+var x = 5
+var y = 7
+const main = {
+	if x == 7 && y == 5
+		-> 7
+	else
+		-> 9
+	;;
+}
--- /dev/null
+++ b/test/condiftrue.myr
@@ -1,0 +1,9 @@
+var x = 5
+var y = 7
+const main = {
+	if x == 5 && y == 7
+		-> 7
+	else
+		-> 9
+	;;
+}
--- a/test/tests
+++ b/test/tests
@@ -36,7 +36,8 @@
 B nestfn	E	42
 B closure	E	55
 B loop		E	45
-B condif	E	9
+B condiftrue	E	7
+B condiffalse	E	9
 B fib		E	21
 B float		E	1
 B log-and	E	0