Cache diagnostic message for easier access, and better extern C handling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -48,7 +48,7 @@ TEST_CASE( "Get full diagnostic message", "[integration]" ) {
|
||||
REQUIRE(script->Diagnostics -> HasErrors());
|
||||
auto diags = script->Diagnostics -> GetDiagnostics();
|
||||
auto msg = script->Diagnostics->GetFullDiagnostic(&diags[0]);
|
||||
REQUIRE(msg == "[Error] (2, 2) '\\x' is not a valid control character.");
|
||||
REQUIRE(*msg == "[Error] (2, 2) '\\x' is not a valid control character.");
|
||||
delete script;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user