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:
@@ -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!
|
||||
@@ -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.
|
||||
@@ -0,0 +1,11 @@
|
||||
// Empty body.
|
||||
class A {}
|
||||
|
||||
// Newline body.
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
// No newline after last method.
|
||||
class C {
|
||||
method {} }
|
||||
Reference in New Issue
Block a user