| 3 | #include "dsl.h" |
| 4 | |
| 5 | static void read_call_tests() { |
| 6 | struct hc_sloc sloc = hc_sloc("read_call_tests", 0, 0); |
| 7 | |
| 8 | struct hc_list out; |
| 9 | hc_list_init(&out); |
| 10 | hc_defer(hc_forms_free(&out)); |
| 11 | |
| 12 | const char *s = "( foo bar )"; |
| 13 | const char *in = s; |
| 14 | assert(hc_read_expr(&in, &out, &sloc)); |
| 15 | |
| 16 | struct hc_form *f = hc_baseof(out.next, struct hc_form, owner); |
| 17 | assert(f->type == &HC_CALL_FORM); |
| 18 | } |
| 19 | |
| 20 | static void read_id_tests() { |
| 21 | struct hc_sloc sloc = hc_sloc("read_id_tests", 0, 0); |
no test coverage detected