summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-23 23:33:35 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-23 23:33:35 -0400
commitde2876e46f5e7534cc986b351eea85abd788d425 (patch)
treed4f9c66c73f6bae5ea82749f41ab8f703716ea90 /test
parentc97f69cb8e5300d8048604863b451e3685e8f105 (diff)
downloadmc-de2876e46f5e7534cc986b351eea85abd788d425.tar.gz
Fix flipped operands and misnamed instructions.
Diffstat (limited to 'test')
-rw-r--r--test/condifrel.myr10
-rw-r--r--test/tests1
2 files changed, 11 insertions, 0 deletions
diff --git a/test/condifrel.myr b/test/condifrel.myr
new file mode 100644
index 0000000..f76f5f3
--- /dev/null
+++ b/test/condifrel.myr
@@ -0,0 +1,10 @@
+
+var x = 3
+var y = 9
+const main = {
+ if x < 5 && y > 7
+ -> 7
+ else
+ -> 9
+ ;;
+}
diff --git a/test/tests b/test/tests
index e54313f..236c1b0 100644
--- a/test/tests
+++ b/test/tests
@@ -38,6 +38,7 @@ B closure E 55
B loop E 45
B condiftrue E 7
B condiffalse E 9
+B condifrel E 7
B fib E 21
B float E 1
B log-and E 0