Expose debug flag on document

This commit is contained in:
Max Brunsfeld 2014-09-06 17:56:00 -07:00
parent c0a3f8d39c
commit 43ecac2a1d
3 changed files with 9 additions and 0 deletions

View file

@ -291,6 +291,7 @@ describe("Document", [&]() {
describe("when the error is an empty string", [&]() {
it("computes the error node's size and position correctly", [&]() {
ts_document_set_input_string(doc, " [123, , true]");
AssertThat(ts_node_string(ts_document_root_node(doc)), Equals(
"(DOCUMENT (array (number) (ERROR ',') (true)))"));