diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 04:11:51 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 04:11:51 +0000 |
commit | db9f1efc4cb93401ce83356903f83caaf26879c6 (patch) | |
tree | 9e13120ba1281d129bdfb0be82281d221a82b449 /test | |
parent | 4b85e88174eea7a79d9c68210d716dc3e4c4f0eb (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/enc/test_emoji_breaks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/enc/test_emoji_breaks.rb b/test/ruby/enc/test_emoji_breaks.rb index 932dda35fa..0a831bff93 100644 --- a/test/ruby/enc/test_emoji_breaks.rb +++ b/test/ruby/enc/test_emoji_breaks.rb @@ -88,8 +88,8 @@ TestEmojiBreaks.data_files_available? and class TestEmojiBreaks 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}" |