| 18 | } |
| 19 | |
| 20 | static void read_id_tests() { |
| 21 | struct hc_sloc sloc = hc_sloc("read_id_tests", 0, 0); |
| 22 | |
| 23 | struct hc_list out; |
| 24 | hc_list_init(&out); |
| 25 | hc_defer(hc_forms_free(&out)); |
| 26 | |
| 27 | const char *s = "foo"; |
| 28 | const char *in = s; |
| 29 | assert(hc_read_expr(&in, &out, &sloc)); |
| 30 | |
| 31 | struct hc_form *f = hc_baseof(out.next, struct hc_form, owner); |
| 32 | assert(f->type == &HC_ID_FORM); |
| 33 | } |
| 34 | |
| 35 | static void eval_tests() { |
| 36 | struct hc_dsl dsl; |
no test coverage detected