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

View File

@ -0,0 +1,3 @@
IO.print(new Fn {
if (false) "no" else return "ok"
}.call()) // expect: ok

View File

@ -0,0 +1,3 @@
IO.print(new Fn {
if (true) return "ok"
}.call()) // expect: ok

View File

@ -0,0 +1,3 @@
IO.print(new Fn {
while (true) return "ok"
}.call()) // expect: ok

View File

@ -0,0 +1,6 @@
var f = new Fn {
return "ok"
IO.print("bad")
}
IO.print(f.call()) // expect: ok

View File

@ -0,0 +1,8 @@
class Foo {
method {
return "ok"
IO.print("bad")
}
}
IO.print((new Foo).method) // expect: ok

View File

@ -0,0 +1,6 @@
var f = new Fn {
return
IO.print("bad")
}
IO.print(f.call()) // expect: null