Generalize balancing criteria to include repeat nodes w/ extra tokens

Previously, extra tokens like comments would prevent trees from being
balanced properly.
This commit is contained in:
Max Brunsfeld 2018-11-14 10:20:33 -08:00
parent 87c391f8af
commit 434a39b805
2 changed files with 14 additions and 10 deletions

View file

@ -18,7 +18,7 @@ void assert_consistent(Subtree tree) {
AssertThat(total_children_size, Equals<Length>(ts_subtree_total_size(tree)));
};
START_TEST
START_TEST;
describe("Subtree", []() {
enum {