Add exception unit test

This commit is contained in:
Jonathan Turner 2009-09-19 02:21:36 +00:00
parent b17c6b9748
commit fedcd28ecc
2 changed files with 10 additions and 0 deletions

9
unittests/exception.chai Normal file
View File

@ -0,0 +1,9 @@
var x = 1
try {
throw(x)
x = 2
}
catch(e) {
x = e + 3
}
print(x)

1
unittests/exception.txt Normal file
View File

@ -0,0 +1 @@
4