tests/hash_bfs_test.rb in tins-1.36.0 vs tests/hash_bfs_test.rb in tins-1.36.1
- old
+ new
@@ -13,11 +13,11 @@
assert_equal [[:a, "foo"], [:c, "baz"], [:d, "quux"], [0, "blub"]], results
end
def test_with_nodes
results = []
- @hash.bfs(visit_interal: true) { |*a| results.push(a) }
+ @hash.bfs(visit_internal: true) { |*a| results.push(a) }
assert_equal(
[[nil, {a:"foo", b:[{c:"baz"}, {d:"quux"}, ["blub"]]}], [:a, "foo"],
[:b, [{c:"baz"}, {d:"quux"}, ["blub"]]], [0, {c:"baz"}], [1, {d:"quux"}],
[2, ["blub"]], [:c, "baz"], [:d, "quux"], [0, "blub"]], results
)
@@ -25,10 +25,10 @@
end
def test_with_nodes_with_circle
results = []
@hash[:b].last << @hash
- @hash.bfs(visit_interal: true) { |*a| results.push(a) }
+ @hash.bfs(visit_internal: true) { |*a| results.push(a) }
assert_equal 9, results.size
end
end
end