Mercurial > lbo > hg > ylisp
changeset 135:a26a197afe24
preprocess: Assert correct calculation outcome
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 01 Sep 2019 19:26:44 +0200 |
parents | ee13116349cd |
children | b930e16125fb |
files | src/preprocess_test.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/preprocess_test.c Sun Sep 01 19:24:45 2019 +0200 +++ b/src/preprocess_test.c Sun Sep 01 19:26:44 2019 +0200 @@ -42,6 +42,7 @@ state.call_stack = YVEC_NEW(NULL, 0, yexpr_t); yexpr_t result = yeval_list_return_last(&state, &program.value.list, 0); assert(result.typ == YEXPR_NUMBER); + assert(252 == result.value.n); yexpr_debug(&result); ystr_destroy(&input);