Fix assetion of an example program
test-json-parser fails:
test-json-parser.c:42: int main():
Assertion `ts_node_child_count(array_node) == 4' failed.
`array_node` has five nodes: ([), (number), (,), (null), (]).
This commit is contained in:
parent
af01846fd7
commit
87448aa534
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ int main() {
|
|||
|
||||
// Check that the nodes have the expected child counts.
|
||||
assert(ts_node_child_count(root_node) == 1);
|
||||
assert(ts_node_child_count(array_node) == 4);
|
||||
assert(ts_node_child_count(array_node) == 5);
|
||||
assert(ts_node_named_child_count(array_node) == 2);
|
||||
assert(ts_node_child_count(number_node) == 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue