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
229229 "try {"
230230 " testClass.doRaiseTest();"
231231 "} catch (err) {"
232− " if (err === \"Exception test!\") {"
232+ " if (err.message.includes(\"Exception test!\")) {"
233233 " print(\"Caught!\");"
234234 " }"
235235 "}"