Replace TreeVector with a more generic Vector struct

This commit is contained in:
Max Brunsfeld 2015-11-15 09:55:36 -08:00
parent 0824d3e1f3
commit ab34cfecd9
4 changed files with 76 additions and 61 deletions

View file

@ -1,4 +1,5 @@
#include "runtime/runtime_spec_helper.h"
#include "runtime/helpers/tree_helpers.h"
#include "runtime/stack.h"
#include "runtime/tree.h"
#include "runtime/length.h"
@ -43,7 +44,7 @@ describe("Stack", [&]() {
TSLength len = ts_length_make(2, 2);
for (size_t i = 0; i < tree_count; i++)
trees[i] = ts_tree_make_leaf(ts_builtin_sym_start + i, len, len, TSNodeTypeNamed);
trees[i] = ts_tree_make_leaf(i, len, len, TSNodeTypeNamed);
});
after_each([&]() {