Reorganize tests and benchmark scripts.

Mainly to get rid of one top level directory. But this will
also be useful when there are tests of the embedding API.
This commit is contained in:
Bob Nystrom
2015-03-14 12:45:56 -07:00
parent e2a72282a1
commit 64eccdd9be
562 changed files with 32 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
class Foo {
static sayName {
IO.print(Foo)
}
sayName {
IO.print(Foo)
}
static toString { "Foo!" }
}
Foo.sayName // expect: Foo!
(new Foo).sayName // expect: Foo!
+6
View File
@@ -0,0 +1,6 @@
class Foo {}
var foo = new Foo
IO.print(foo is Foo) // expect: true
// TODO: Test precedence and grammar of what follows "new".
@@ -0,0 +1,2 @@
class // expect error
Foo {}
@@ -0,0 +1,6 @@
class Foo {
static // expect error
method {} // expect error
}
// The second error is cascaded.
+11
View File
@@ -0,0 +1,11 @@
// Empty body.
class A {}
// Newline body.
class B {
}
// No newline after last method.
class C {
method {} }