Skip to content

Commit 9d24c3b

Browse files
committed
Add logging when squeeze test fails
Do not merge this
1 parent 025a424 commit 9d24c3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/mri/ruby/test_m17n_comb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ def test_str_split
11971197
def test_str_squeeze
11981198
combination(STRINGS, STRINGS) {|s1, s2|
11991199
if !s1.valid_encoding? || !s2.valid_encoding?
1200-
assert_raise(ArgumentError, Encoding::CompatibilityError, "#{encdump s1}.squeeze(#{encdump s2})") { s1.squeeze(s2) }
1200+
assert_raise(ArgumentError, Encoding::CompatibilityError, "#{encdump s1}.squeeze(#{encdump s2})") { s1.squeeze(s2); puts "failed: s1: #{s1.dump}, s2: #{s2.dump}, #{encdump s1}.squeeze(#{encdump s2}), squeeze returned #{s1.squeeze(s2).dump}" }
12011201
next
12021202
end
12031203
if !s1.ascii_only? && !s2.ascii_only? && s1.encoding != s2.encoding

0 commit comments

Comments
 (0)