added tests for malformed function literal to

check for memory leaks
This commit is contained in:
Karma Riuk
2025-07-15 01:11:53 +02:00
parent afbabd6c9e
commit c6daa5c2af
2 changed files with 72 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ void test_failing_parsing(
parser::parser p{l};
std::unique_ptr<ast::program> program = p.parse_program();
INFO(*program);
// Check for errors
REQUIRE(p.errors.size() >= expected_types.size());