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 script = GetScript(mainLib, "throwScript"_cnc);
|
||||
REQUIRE(script != nullptr);
|
||||
CHECK_THROWS_WITH(
|
||||
TryException(script),
|
||||
Catch::Matchers::Equals("Script exception in script 'throwScript', line 1. Message: 'test exception'."));
|
||||
try{
|
||||
TryException(script);
|
||||
}
|
||||
catch (const ArbUt::Exception& e){
|
||||
REQUIRE(strcmp(e.what(), "Script exception in script 'throwScript', line 1. Message: 'test exception'.") == 0);
|
||||
delete script;
|
||||
return;
|
||||
}
|
||||
throw ArbUt::Exception("Didn't throw");
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue