Better error handling when unable to index an eval value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-09-07 13:04:42 +02:00
parent 5c63b15ab7
commit 2e1bdcf3a4
2 changed files with 16 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ TEST_CASE( "Assignment Statement To String", "[BoundTreeString]" ) {
const BoundVariableKey *keyObj = new BoundVariableKey(HashedString(key), 0, true);
auto s = new BoundAssignmentStatement(keyObj, new BoundLiteralIntegerExpression(5, 0,0));
s->GetTreeString(stream, 1);
REQUIRE(stream.str() == "\tAssignment -> key\n\t\tLiteralInteger: 5 (number)");
REQUIRE(stream.str() == "\tAssignment -> global key\n\t\tLiteralInteger: 5 (number)");
delete s;
}