Fixed test functions and pretty printer. Also fixed bug in parse_sequence. Wrote whitespace parser
This commit is contained in:
parent
4b31f327cd
commit
57e1e20db0
3 changed files with 42 additions and 37 deletions
|
|
@ -54,7 +54,7 @@
|
|||
#define g_check_parse_ok(parser, input, inp_len, result) { \
|
||||
parse_result_t *res = parse(parser, (const uint8_t*)input, inp_len); \
|
||||
if (!res) { \
|
||||
g_test_message("Parse failed"); \
|
||||
g_test_message("Parse failed on line %d", __LINE__); \
|
||||
g_test_fail(); \
|
||||
} else { \
|
||||
char* cres = write_result_unamb(res->ast); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue