ruby-changes:60331
From: Nobuyoshi <ko1@a...>
Date: Sun, 8 Mar 2020 17:44:30 +0900 (JST)
Subject: [ruby-changes:60331] daa04c5562 (master): Word array instead of splitting
https://git.ruby-lang.org/ruby.git/commit/?id=daa04c5562 From daa04c556238729256b77ccabbd56a9ebdbd7e46 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 8 Mar 2020 17:39:22 +0900 Subject: Word array instead of splitting diff --git a/test/-ext-/string/test_normalize.rb b/test/-ext-/string/test_normalize.rb index 8c11bfe..80b21df 100644 --- a/test/-ext-/string/test_normalize.rb +++ b/test/-ext-/string/test_normalize.rb @@ -63,7 +63,7 @@ class Test_StringNormalize < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_normalize.rb#L63 end def test_not_normalize_kc - %[ + %W[ \u2460 \u2162 \u3349 @@ -74,7 +74,7 @@ class Test_StringNormalize < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_normalize.rb#L74 \u2121 \u32A4 \u3231 - ].split.each do |src| + ].each do |src| result = Bug::String.new(src).normalize_ospath assert_equal src, result, "#{src.dump} is expected not to be normalized, but #{result.dump}" @@ -82,7 +82,7 @@ class Test_StringNormalize < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_normalize.rb#L82 end def test_dont_normalize_hfsplus - %[ + %W[ \u2190\u0338 \u219A \u212B @@ -95,7 +95,7 @@ class Test_StringNormalize < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_normalize.rb#L95 \uFA10 \uFA19 \uFA26 - ].split.each do |src| + ].each do |src| result = Bug::String.new(src).normalize_ospath assert_equal src, result, "#{src.dump} is expected not to be normalized, but #{result.dump}" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/