added prefix parsing for boolean literals

This commit is contained in:
Karma Riuk
2025-07-11 21:00:11 +02:00
parent 4da5f32aea
commit aaec4cefcf
3 changed files with 21 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ void test_boolean_literal(ast::expression* expr, bool value) {
REQUIRE(bool_lit->value == value);
std::ostringstream oss;
oss << value;
oss << (value ? "true" : "false");
REQUIRE(bool_lit->token_literal() == oss.str());
}