Add parser error messages
This commit is contained in:
parent
614e497ac4
commit
55809f702d
14 changed files with 213 additions and 83 deletions
|
|
@ -1,13 +1,15 @@
|
|||
#include "spec_helper.h"
|
||||
#include "../fixtures/parsers/arithmetic.c"
|
||||
#include "document.h"
|
||||
|
||||
extern TSParseConfig ts_parse_config_arithmetic;
|
||||
|
||||
START_TEST
|
||||
|
||||
describe("arithmetic", []() {
|
||||
it("parses_numbers", [&]() {
|
||||
TSDocument *document = TSDocumentMake();
|
||||
TSDocumentSetUp_arithmetic(document);
|
||||
TSDocumentSetText(document, "5");
|
||||
TSDocumentSetUp(document, ts_parse_config_arithmetic);
|
||||
TSDocumentSetText(document, "w");
|
||||
printf("%s", TSDocumentToString(document));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue