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:
parent
87c391f8af
commit
434a39b805
2 changed files with 14 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue