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)
|
1
unittests/exception.txt
Normal file
1
unittests/exception.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
4
|
Reference in New Issue
Block a user