Update to latest CreatureLib.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
3477de14cb
commit
d9badefb07
|
@ -344,10 +344,15 @@ TEST_CASE("Handle script exceptions.") {
|
||||||
auto mainLib = TestLibrary::GetLibrary();
|
auto mainLib = TestLibrary::GetLibrary();
|
||||||
auto script = GetScript(mainLib, "throwScript"_cnc);
|
auto script = GetScript(mainLib, "throwScript"_cnc);
|
||||||
REQUIRE(script != nullptr);
|
REQUIRE(script != nullptr);
|
||||||
CHECK_THROWS_WITH(
|
try{
|
||||||
TryException(script),
|
TryException(script);
|
||||||
Catch::Matchers::Equals("Script exception in script 'throwScript', line 1. Message: 'test exception'."));
|
}
|
||||||
|
catch (const ArbUt::Exception& e){
|
||||||
|
REQUIRE(strcmp(e.what(), "Script exception in script 'throwScript', line 1. Message: 'test exception'.") == 0);
|
||||||
delete script;
|
delete script;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
throw ArbUt::Exception("Didn't throw");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue