ref: f3b87289d7b82879b8dc6336158829ed21881aa0
parent: beab0276a94c684f938ae5ea3d2c29c3dc331386
author: Ori Bernstein <[email protected]>
date: Sun Jul 8 18:29:22 EDT 2018
Enable a few more tests that we fixed.
--- 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])
}
--- a/test/compoundimpl.myr
+++ b/test/compoundimpl.myr
@@ -16,7 +16,7 @@
}
;;
-generic foo = {x : @a::frobable
+generic foo = {x : @a :: frobable @a
frob(x)
}
--- a/test/tests
+++ b/test/tests
@@ -91,7 +91,7 @@
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 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