We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 484ea00 commit 4e516a4Copy full SHA for 4e516a4
test/ruby/test_m17n.rb
@@ -1584,13 +1584,16 @@ def test_combchar_codepoint
1584
assert_equal([0x30BB, 0x309A], "\u30BB\u309A".codepoints.to_a)
1585
end
1586
1587
- def each_encoding(*strings)
1588
- Encoding.list.each do |enc|
+ def assert_each_encoding(*strings)
+ all = AllFailures.new
1589
+ all.foreach(*Encoding.list) do |enc|
1590
next if enc.dummy?
1591
strs = strings.map {|s| s.encode(enc)} rescue next
1592
yield(*strs)
1593
1594
+ assert(all.pass?, message {all.message.chomp(".")})
1595
1596
+ alias each_encoding assert_each_encoding
1597
1598
def test_str_b
1599
s = "\u3042"
0 commit comments