diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 17:00:37 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 17:00:37 +0100 |
| commit | 47debf8cc2197187a347b43a795120638b017d5f (patch) | |
| tree | 8e20ef789acc0ff398df5f793dbd7be3c055c9fb /test.c | |
| parent | 20b1cea7a74a4feb759155eedbb6299bd891a325 (diff) | |
renamed enum values VALTYPE->VT, implemented lambdas, apply
Diffstat (limited to 'test.c')
| -rw-r--r-- | test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |
