Browse Source

fix deref assignment check

master
Martin Dørum 3 years ago
parent
commit
7068959e3c
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      test/src/eval.t.c

+ 4
- 1
test/src/eval.t.c View File

@@ -57,6 +57,9 @@ describe(eval) {
defer(l2_vm_free(&vm));
defer(l2_gen_free(&gen));

l2_vm_print_state(&vm);
assert(l2_vm_value_type(var_lookup("foo")) == L2_VAL_TYPE_REAL);
assert(var_lookup("foo")->real == 10);
assert(l2_vm_value_type(var_lookup("bar")) == L2_VAL_TYPE_REAL);
assert(var_lookup("bar")->real == 10);
}
}

Loading…
Cancel
Save