clarify asserts to UTF-8 test suites; ref #2971

parent 0a94c69c
# coding: utf-8
## ##
# String ISO Test # String ISO Test
...@@ -262,7 +263,7 @@ assert('String#chop', '15.2.10.5.11') do ...@@ -262,7 +263,7 @@ assert('String#chop', '15.2.10.5.11') do
assert_equal 'abc', c assert_equal 'abc', c
end end
assert('String#chop', '15.2.10.5.11') do assert('String#chop(UTF-8)', '15.2.10.5.11') do
a = ''.chop a = ''.chop
b = 'あいう'.chop b = 'あいう'.chop
c = "あ\nい".chop.chop c = "あ\nい".chop.chop
...@@ -283,7 +284,7 @@ assert('String#chop!', '15.2.10.5.12') do ...@@ -283,7 +284,7 @@ assert('String#chop!', '15.2.10.5.12') do
assert_equal b, 'ab' assert_equal b, 'ab'
end end
assert('String#chop!', '15.2.10.5.12') do assert('String#chop!(UTF-8)', '15.2.10.5.12') do
a = '' a = ''
b = "あいうえ\n" b = "あいうえ\n"
c = "あいうえ\n" c = "あいうえ\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment