History

Fix buggy testRaiseExceptionAndCatch test

Dale Glass committed 6 months ago

Commit ddb5c8b1 parent 95f600f1 file · +1 −1Browse files

Showing the changes to tests/script-engine/src/ScriptEngineTests.cpp (1 of 1 file). Show all

Unified · Split

tests/script-engine/src/ScriptEngineTests.cpp+1−1
@@ -229,7 +229,7 @@ void ScriptEngineTests::testRaiseExceptionAndCatch() { · 228 unmodified lines
229 "try {"229 "try {"
230 " testClass.doRaiseTest();"230 " testClass.doRaiseTest();"
231 "} catch (err) {"231 "} catch (err) {"
232 " if (err === \"Exception test!\") {"232 " if (err.message.includes(\"Exception test!\")) {"
233 " print(\"Caught!\");"233 " print(\"Caught!\");"
234 " }"234 " }"
235 "}"235 "}"