Remove 'document' wrapper node
This commit is contained in:
parent
6933d7b425
commit
21258e6a9e
23 changed files with 165 additions and 136 deletions
|
|
@ -27,7 +27,7 @@ describe("Document", [&]() {
|
|||
ts_document_set_input_string(doc, "{ \"key\": [1, 2] }");
|
||||
|
||||
AssertThat(ts_node_string(ts_document_root_node(doc), doc), Equals(
|
||||
"(DOCUMENT (object (string) (array (number) (number))))"));
|
||||
"(object (string) (array (number) (number)))"));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ describe("Document", [&]() {
|
|||
ts_document_set_language(doc, ts_language_json());
|
||||
|
||||
AssertThat(ts_node_string(ts_document_root_node(doc), doc), Equals(
|
||||
"(DOCUMENT (object (string) (array (number) (number))))"));
|
||||
"(object (string) (array (number) (number)))"));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue