better use of fixtures for resource allocation and

dealocation
This commit is contained in:
Karma Riuk
2025-07-08 15:45:38 +02:00
parent 83df4955d4
commit d10e5676c1
4 changed files with 27 additions and 35 deletions

View File

@@ -90,13 +90,6 @@ let y = 10;\
let foobar = 103213;\
");
ast::program* program = p->parse_program();
check_parser_errors(p->errors);
REQUIRE_MESSAGE(
program != nullptr,
"parse_program() returned a null pointer"
);
REQUIRE(program->statements.size() == 3);
struct test {
@@ -115,7 +108,5 @@ let foobar = 103213;\
test_let_statement(stmt, t.expected_identifier);
}
delete program;
}
}