Refactor extract tokens function
This commit is contained in:
parent
67fa81d079
commit
b85b15db42
4 changed files with 42 additions and 41 deletions
|
|
@ -20,7 +20,7 @@ describe("json", []() {
|
|||
|
||||
it("parses objects", [&]() {
|
||||
TSDocumentSetText(document, "{\"key1\":1}");
|
||||
AssertThat(string(TSDocumentToString(document)), Equals("(value (object (4) (string) (5) (value (number)) (6) (7)))"));
|
||||
AssertThat(string(TSDocumentToString(document)), Equals("(value (object (4) (string) (5) (value (number)) (2) (6)))"));
|
||||
|
||||
TSDocumentSetText(document, "{\"key1\":1,\"key2\":2}");
|
||||
AssertThat(string(TSDocumentToString(document)), Equals("(value (object (4) (string) (5) (value (number)) (6) (7)))"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue