ChaiScript/unittests/3.x/runtime_error.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

12 lines
151 B
ChaiScript

var caught = false
try {
throw(runtime_error("error"))
}
catch(e) {
caught = true
assert_equal("error", e.what())
}
assert_equal(true, caught)