diff --git a/spec/runtime/stack_spec.cc b/spec/runtime/stack_spec.cc index 75c28f53..4b2b9625 100644 --- a/spec/runtime/stack_spec.cc +++ b/spec/runtime/stack_spec.cc @@ -18,7 +18,7 @@ describe("stacks", [&]() { }); it("starts out empty", [&]() { - AssertThat(stack.size, Equals(0)); + AssertThat(stack.size, Equals(0)); AssertThat(ts_stack_top_state(&stack), Equals(0)); AssertThat(ts_stack_top_node(&stack), Equals((ts_tree *)nullptr)); }); @@ -36,7 +36,7 @@ describe("stacks", [&]() { }); it("adds the symbol to the stack", [&]() { - AssertThat(stack.size, Equals(1)); + AssertThat(stack.size, Equals(1)); AssertThat(ts_stack_top_state(&stack), Equals(5)); AssertThat(ts_stack_top_node(&stack), Equals(node1)); }); @@ -64,9 +64,9 @@ describe("stacks", [&]() { }); it("pops the given number of nodes off the stack", [&]() { - AssertThat(stack.size, Equals(4)); + AssertThat(stack.size, Equals(4)); ts_stack_reduce(&stack, sym2, 3, hidden_symbols, nullptr); - AssertThat(stack.size, Equals(1)); + AssertThat(stack.size, Equals(1)); }); it("returns a node with the given symbol", [&]() { @@ -85,7 +85,7 @@ describe("stacks", [&]() { size_t immediate_child_count; ts_tree **immediate_children = ts_tree_immediate_children(node, &immediate_child_count); - AssertThat(immediate_child_count, Equals(3)); + AssertThat(immediate_child_count, Equals(3)); for (size_t i = 0; i < 3; i++) AssertThat(immediate_children[i], Equals(expected_children[i])); }); @@ -100,7 +100,7 @@ describe("stacks", [&]() { size_t child_count; ts_tree **children = ts_tree_children(node, &child_count); - AssertThat(child_count, Equals(2)); + AssertThat(child_count, Equals(2)); for (size_t i = 0; i < 2; i++) AssertThat(children[i], Equals(expected_children[i])); }); @@ -139,7 +139,7 @@ describe("stacks", [&]() { size_t child_count; ts_tree **children = ts_tree_children(node, &child_count); - AssertThat(child_count, Equals(4)); + AssertThat(child_count, Equals(4)); for (size_t i = 0; i < 4; i++) AssertThat(children[i], Equals(expected_children[i])); }); diff --git a/spec/runtime/tree_spec.cc b/spec/runtime/tree_spec.cc index f5257560..872bcc09 100644 --- a/spec/runtime/tree_spec.cc +++ b/spec/runtime/tree_spec.cc @@ -30,11 +30,11 @@ describe("trees", []() { describe("making a parent node", [&]() { it("computes its offset and size based on its child nodes", [&]() { - AssertThat(ts_tree_size(parent1), Equals(9)); + AssertThat(ts_tree_size(parent1), Equals(9)); }); it("computes its offset based on its first child", [&]() { - AssertThat(ts_tree_offset(parent1), Equals(2)); + AssertThat(ts_tree_offset(parent1), Equals(2)); }); });