Add exception unit test
This commit is contained in:
9
unittests/exception.chai
Normal file
9
unittests/exception.chai
Normal file
@@ -0,0 +1,9 @@
|
||||
var x = 1
|
||||
try {
|
||||
throw(x)
|
||||
x = 2
|
||||
}
|
||||
catch(e) {
|
||||
x = e + 3
|
||||
}
|
||||
print(x)
|
Reference in New Issue
Block a user