Add some tests that were laying around

This commit is contained in:
Jason Turner 2016-01-30 06:56:01 -07:00
parent 7688c14d43
commit 872f16e45a
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,3 @@
var v = [[[15]]]
assert_true(v[0][0][0] == 15)

View File

@ -0,0 +1 @@
assert_equal("a string", "${"a string"}")

View File

@ -0,0 +1,16 @@
try {
eval("to_string(5) = \"some string\"")
assert_true(false)
} catch (e) {
print("Caught Error: " + e.what());
}
try {
eval("var v = [1,2,3]; v.size() = 3")
assert_true(false)
} catch (e) {
print("Caught Error: " + e.what());
}