Skip to content

Commit

Permalink
Add logging when squeeze test fails
Browse files Browse the repository at this point in the history
Do not merge this
  • Loading branch information
headius committed Jul 31, 2024
1 parent 025a424 commit 876356a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mri/ruby/test_m17n_comb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ def test_str_split
def test_str_squeeze
combination(STRINGS, STRINGS) {|s1, s2|
if !s1.valid_encoding? || !s2.valid_encoding?
assert_raise(ArgumentError, Encoding::CompatibilityError, "#{encdump s1}.squeeze(#{encdump s2})") { s1.squeeze(s2) }
assert_raise(ArgumentError, Encoding::CompatibilityError, "#{encdump s1}.squeeze(#{encdump s2})") { s1.squeeze(s2); puts "failed: s1: #{s1}, s2: #{s2}, #{encdump s1}.squeeze(#{encdump s2}), squeeze returned #{s1.squeeze(s2)}" }
next
end
if !s1.ascii_only? && !s2.ascii_only? && s1.encoding != s2.encoding
Expand Down

0 comments on commit 876356a

Please sign in to comment.