summaryrefslogtreecommitdiff
path: root/test/condiftrue.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-23 23:21:45 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-23 23:21:45 -0400
commitc97f69cb8e5300d8048604863b451e3685e8f105 (patch)
treec2651b20bc948b41c9338227a7db98d958905c52 /test/condiftrue.myr
parent4403e8080fea47d509fa2ca264feff1cccceefbe (diff)
downloadmc-c97f69cb8e5300d8048604863b451e3685e8f105.tar.gz
Save tests for both conditional true and false.
Diffstat (limited to 'test/condiftrue.myr')
-rw-r--r--test/condiftrue.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/condiftrue.myr b/test/condiftrue.myr
new file mode 100644
index 0000000..0874d5e
--- /dev/null
+++ b/test/condiftrue.myr
@@ -0,0 +1,9 @@
+var x = 5
+var y = 7
+const main = {
+ if x == 5 && y == 7
+ -> 7
+ else
+ -> 9
+ ;;
+}