Fix a bunch of test TODOs.

- Added a bunch of tests.
- Removed some TODOs for stuff that's already done.
- Made list literals handle newlines better.
This commit is contained in:
Bob Nystrom
2013-12-20 12:42:11 -08:00
parent 315ed1c425
commit f2b036420d
12 changed files with 54 additions and 15 deletions
-1
View File
@@ -6,7 +6,6 @@ io.write(~23) // expect: 4294967272
io.write(~4294967295) // expect: 0
// Past max u32 value.
// TODO: Is this right?
io.write(~4294967296) // expect: 4294967295
// Negative numbers.
+10 -1
View File
@@ -14,5 +14,14 @@ io.write(1 >= 2) // expect: false
io.write(2 >= 2) // expect: true
io.write(2 >= 1) // expect: true
// Zero and negative zero compare the same.
io.write(0 < -0) // expect: false
io.write(-0 < 0) // expect: false
io.write(0 > -0) // expect: false
io.write(-0 > 0) // expect: false
io.write(0 <= -0) // expect: true
io.write(-0 <= 0) // expect: true
io.write(0 >= -0) // expect: true
io.write(-0 >= 0) // expect: true
// TODO: Wrong type for RHS.
// TODO: Comparing zero and negative zero.