summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-07-08 22:29:22 -0700
committerOri Bernstein <ori@eigenstate.org>2018-07-08 22:29:22 -0700
commitf3b87289d7b82879b8dc6336158829ed21881aa0 (patch)
treee72144b443d47b400cbbaf8f3900e44e4f80355a
parentbeab0276a94c684f938ae5ea3d2c29c3dc331386 (diff)
downloadmc-f3b87289d7b82879b8dc6336158829ed21881aa0.tar.gz
Enable a few more tests that we fixed.
-rw-r--r--test/arraylit.myr8
-rw-r--r--test/compoundimpl.myr2
-rw-r--r--test/tests5
3 files changed, 8 insertions, 7 deletions
diff --git a/test/arraylit.myr b/test/arraylit.myr
index 01cb9d4..e37e772 100644
--- a/test/arraylit.myr
+++ b/test/arraylit.myr
@@ -1,7 +1,7 @@
+use std
+
/* checks we can make indexed array literals. exits with 3. */
const main = {
- var a = [#0=1,
- #2=3,
- #1=2]
- -> a[2]
+ var a = [0: 1, 2: 3, 1: 2]
+ std.exit(a[2])
}
diff --git a/test/compoundimpl.myr b/test/compoundimpl.myr
index 72898fa..7c41d86 100644
--- a/test/compoundimpl.myr
+++ b/test/compoundimpl.myr
@@ -16,7 +16,7 @@ impl frobable char# =
}
;;
-generic foo = {x : @a::frobable
+generic foo = {x : @a :: frobable @a
frob(x)
}
diff --git a/test/tests b/test/tests
index 6b9cb65..0dcb843 100644
--- a/test/tests
+++ b/test/tests
@@ -91,7 +91,7 @@ B pkgtrait E 42
B gtrait P '`std.Before'
B emptytrait E 123
B traitimpl P 246,44,meee
-# B compoundimpl P intptr,charptr BUGGERED
+#B compoundimpl P intptr,charptr
B nestucon P asdf
B mkunion E 0
B uconinit P 'A B C 123'
@@ -125,12 +125,13 @@ B matchbind E 8
B matchptr P 'worked'
B matchnest P 'abcdef'
F matchmixed
+F matchoverlap
B bigliteral P 34359738368
B arraylit-ni E 2
B arraypack P '(1, foo)(2, bar)(3, baz)'
B arraypass P 1
B livearraylit E 21
-# B arraylit E 3 ## BUGGERED
+B arraylit E 3
B structlit E 42
B livestructlit E 21
B tuple E 42