Files
interpreter-cpp/test/utils/test_eval.cpp
Karma Riuk 47379c6635 implemented simple evaluator for program,
statements and integer literals, together with
tests
2025-07-19 15:03:38 +02:00

11 lines
299 B
C++

#include "object/integers.hpp"
#include "object/object.hpp"
#include "utils.hpp"
namespace test::utils {
void test_integer_object(object::object* obj, int expected) {
object::integer* i = cast<object::integer>(obj);
CHECK(i->value == expected);
}
} // namespace test::utils