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 -4
View File
@@ -2,10 +2,7 @@ class Foo {
toString { return "Foo" }
}
// A class with no constructors gets an argument-less "new" one by default.
// Classes inherit the argument-less "new" one by default.
var foo = new Foo
io.write(foo is Foo) // expect: true
io.write(foo.toString) // expect: Foo
// TODO: Test that class doesn't get default constructor if it has an explicit
// one.