test/haml/util_test.rb in haml-edge-3.1.25 vs test/haml/util_test.rb in haml-edge-3.1.26
- old
+ new
@@ -62,9 +62,12 @@
end
def test_merge_adjacent_strings
assert_equal(["foo bar baz", :bang, "biz bop", 12],
merge_adjacent_strings(["foo ", "bar ", "baz", :bang, "biz", " bop", 12]))
+ str = "foo"
+ assert_equal(["foo foo foo", :bang, "foo foo", 12],
+ merge_adjacent_strings([str, " ", str, " ", str, :bang, str, " ", str, 12]))
end
def test_intersperse
assert_equal(["foo", " ", "bar", " ", "baz"],
intersperse(%w[foo bar baz], " "))