From 876356a888c08258ae41a55d7c25d136821c43b6 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 31 Jul 2024 08:20:53 -0500 Subject: [PATCH] Add logging when squeeze test fails Do not merge this --- test/mri/ruby/test_m17n_comb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mri/ruby/test_m17n_comb.rb b/test/mri/ruby/test_m17n_comb.rb index e48a1948beaa..186d9d44f047 100644 --- a/test/mri/ruby/test_m17n_comb.rb +++ b/test/mri/ruby/test_m17n_comb.rb @@ -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