Restructure integration tests to use separate JSON and corpus files

This makes these tests way easier to write and read.
This commit is contained in:
Max Brunsfeld 2017-03-09 11:49:30 -08:00
parent f049d5d94c
commit ac4167fdc9
54 changed files with 1424 additions and 1211 deletions

View file

@ -40,7 +40,7 @@ describe("Node", []() {
record_alloc::start();
document = ts_document_new();
ts_document_set_language(document, get_test_language("json"));
ts_document_set_language(document, load_real_language("json"));
ts_document_set_input_string(document, input_string.c_str());
ts_document_parse(document);