From 47debf8cc2197187a347b43a795120638b017d5f Mon Sep 17 00:00:00 2001 From: Felix Perktold Date: Sun, 21 Dec 2025 17:00:37 +0100 Subject: renamed enum values VALTYPE->VT, implemented lambdas, apply --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index 0e462b9..9dfe8c6 100644 --- a/test.c +++ b/test.c @@ -22,7 +22,7 @@ env *global_env = NULL; void test_make_int() { value *v = make_int(42); - ASSERT(v->type == VALTYPE_INT, "make_int sets type"); + ASSERT(v->type == VT_INT, "make_int sets type"); ASSERT(v->as.i == 42, "make_int sets value"); } @@ -31,7 +31,7 @@ void test_cons_car_cdr() { value *b = make_int(2); value *p = cons(a, b); - ASSERT(p->type == VALTYPE_PAIR, "cons creates pair"); + ASSERT(p->type == VT_PAIR, "cons creates pair"); ASSERT(car(p)->as.i == 1, "car works"); ASSERT(cdr(p)->as.i == 2, "cdr works"); } -- cgit v1.2.3