added a way to show the call stack of the functions
This commit is contained in:
@@ -205,4 +205,11 @@ TEST_SUITE("Parser: expression") {
|
||||
CHECK(program->str() == t.expected);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE_FIXTURE(ParserFixture, "Test to see trace") {
|
||||
setup("-1 * 2 - 3");
|
||||
CHECK(program->str() == "(((-1) * 2) - 3)");
|
||||
setup("-1 - 2 * 3");
|
||||
CHECK(program->str() == "((-1) - (2 * 3))");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user