Expose debug flag on document
This commit is contained in:
parent
c0a3f8d39c
commit
43ecac2a1d
3 changed files with 9 additions and 0 deletions
|
|
@ -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)))"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue