ruby-changes:53972
From: duerst <ko1@a...>
Date: Tue, 4 Dec 2018 19:50:01 +0900 (JST)
Subject: [ruby-changes:53972] duerst:r66192 (trunk): change diaeresis from above to below for better visibility
duerst 2018-12-04 19:49:55 +0900 (Tue, 04 Dec 2018) New Revision: 66192 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66192 Log: change diaeresis from above to below for better visibility In test/ruby/test_regexp.rb and test/ruby/test_string.rb, change some instances of COMBINING DIAERESIS (U+0308, above) to COMBINING DIAERESIS BELOW (U+0324) to make it more easily visible in test output, particularly in the context of double quotes surrounding strings. Modified files: trunk/test/ruby/test_regexp.rb trunk/test/ruby/test_string.rb Index: test/ruby/test_regexp.rb =================================================================== --- test/ruby/test_regexp.rb (revision 66191) +++ test/ruby/test_regexp.rb (revision 66192) @@ -955,8 +955,8 @@ class TestRegexp < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L955 assert_match /\A\X\z/, "\u{600 20}" assert_match /\A\X\z/, "\u{261d 1F3FB}" assert_match /\A\X\z/, "\u{1f600}" - assert_match /\A\X\z/, "\u{20 308}" - assert_match /\A\X\X\z/, "\u{a 308}" + assert_match /\A\X\z/, "\u{20 324}" + assert_match /\A\X\X\z/, "\u{a 324}" assert_match /\A\X\X\z/, "\u{d 308}" assert_match /\A\X\z/, "\u{1F477 1F3FF 200D 2640 FE0F}" assert_match /\A\X\z/, "\u{1F468 200D 1F393}" Index: test/ruby/test_string.rb =================================================================== --- test/ruby/test_string.rb (revision 66191) +++ test/ruby/test_string.rb (revision 66192) @@ -991,8 +991,8 @@ CODE https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L991 end [ - ["\u{a 308}", ["\u000A", "\u0308"]], - ["\u{d 308}", ["\u000D", "\u0308"]], + ["\u{a 324}", ["\u000A", "\u0324"]], + ["\u{d 324}", ["\u000D", "\u0324"]], ["abc", ["a", "b", "c"]], ].each do |str, grapheme_clusters| assert_equal grapheme_clusters, str.each_grapheme_cluster.to_a @@ -1023,8 +1023,8 @@ CODE https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L1023 assert_predicate g.dup.taint.grapheme_clusters[0], :tainted? end - assert_equal ["\u000A", "\u0308"], "\u{a 308}".grapheme_clusters - assert_equal ["\u000D", "\u0308"], "\u{d 308}".grapheme_clusters + assert_equal ["\u000A", "\u0324"], "\u{a 324}".grapheme_clusters + assert_equal ["\u000D", "\u0324"], "\u{d 324}".grapheme_clusters assert_equal ["a", "b", "c"], "abc".b.grapheme_clusters if ENUMERATOR_WANTARRAY -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/