Add exception unit test
This commit is contained in:
parent
b17c6b9748
commit
fedcd28ecc
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
|
Loading…
x
Reference in New Issue
Block a user