Merge pull request #209 from vzvu3k6k/fix-example-code

Fix assetion of an example program
This commit is contained in:
Max Brunsfeld 2018-10-25 09:43:44 -07:00 committed by GitHub
commit 8f526e6c98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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