ruby-changes:53960
From: duerst <ko1@a...>
Date: Tue, 4 Dec 2018 13:11:55 +0900 (JST)
Subject: [ruby-changes:53960] duerst:r66180 (trunk): change embedding character in TestEmojiBreaks#test_embedded_emoji
duerst 2018-12-04 13:11:51 +0900 (Tue, 04 Dec 2018) New Revision: 66180 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66180 Log: change embedding character in TestEmojiBreaks#test_embedded_emoji In test/ruby/enc/test_emoji_breaks.rb, in method TestEmojiBreaks#test_embedded_emoji, change the surrounding characters from A/Z to the more neutral \t in preparation for upgrade to Unicode 11.0.0. Modified files: trunk/test/ruby/enc/test_emoji_breaks.rb Index: test/ruby/enc/test_emoji_breaks.rb =================================================================== --- test/ruby/enc/test_emoji_breaks.rb (revision 66179) +++ test/ruby/enc/test_emoji_breaks.rb (revision 66180) @@ -88,8 +88,8 @@ TestEmojiBreaks.data_files_available? an https://github.com/ruby/ruby/blob/trunk/test/ruby/enc/test_emoji_breaks.rb#L88 def test_embedded_emoji all_tests.each do |test| - expected = ["A", test.string, "Z"] - actual = "A#{test.string}Z".each_grapheme_cluster.to_a + expected = ["\t", test.string, "\t"] + actual = "\t#{test.string}\t".each_grapheme_cluster.to_a assert_equal expected, actual, "file: #{test.filename}, line #{test.line_number}, " + "type: #{test.type}, shortname: #{test.shortname}, comment: #{test.comment}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/