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:
vzvu3k6k 2018-10-25 02:05:23 +09:00
parent af01846fd7
commit 87448aa534

View file

@ -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);