mirror of
https://github.com/open-goal/jak-project
synced 2026-08-18 21:57:54 -04:00
[goalc] macro expansion in integer constants (#1282)
* [goalc] macro expansion in integer constants * working * didn't break it yet * support conditional compilation * fix up some more small bugs * fix duplicate evaluation of bitfield definitions * paranoid
This commit is contained in:
@@ -404,17 +404,6 @@ TEST(GoosBuiltins, Null) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST(GoosBuiltins, CurrentMethodType) {
|
||||
Interpreter i;
|
||||
i.goal_to_goos.enclosing_method_type = "test-type";
|
||||
EXPECT_EQ(e(i, "(current-method-type)"), "test-type");
|
||||
|
||||
i.disable_printfs();
|
||||
for (auto x : {"(current-method-type 1)"}) {
|
||||
EXPECT_ANY_THROW(e(i, x));
|
||||
}
|
||||
}
|
||||
|
||||
TEST(GoosBuiltins, Type) {
|
||||
Interpreter i;
|
||||
EXPECT_EQ(e(i, "(type? 'empty-list '())"), "#t");
|
||||
|
||||
Reference in New Issue
Block a user