Update to latest CreatureLib.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-08-15 15:21:02 +02:00
parent 3477de14cb
commit d9badefb07
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 9 additions and 4 deletions

View File

@ -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'."));
delete script;
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