summaryrefslogtreecommitdiff
path: root/test/-ext-/string/test_normalize.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-08 17:39:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-08 17:39:22 +0900
commitdaa04c556238729256b77ccabbd56a9ebdbd7e46 (patch)
tree2b2701c555e67d5037f5ee2fa7f621fd8271587f /test/-ext-/string/test_normalize.rb
parent2b7409a2f2aaab1368c57e1cd03c12b2b8972fa9 (diff)
Word array instead of splitting
Diffstat (limited to 'test/-ext-/string/test_normalize.rb')
-rw-r--r--test/-ext-/string/test_normalize.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/-ext-/string/test_normalize.rb b/test/-ext-/string/test_normalize.rb
index 8c11bfe3d4..80b21dff38 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
end
def test_not_normalize_kc
- %[
+ %W[
\u2460
\u2162
\u3349
@@ -74,7 +74,7 @@ class Test_StringNormalize < Test::Unit::TestCase
\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
end
def test_dont_normalize_hfsplus
- %[
+ %W[
\u2190\u0338
\u219A
\u212B
@@ -95,7 +95,7 @@ class Test_StringNormalize < Test::Unit::TestCase
\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}"