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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-10-01 19:32:29 +09:00
parent 0a94c69cc3
commit 6b3fd18262
+3 -2
View File
@@ -1,3 +1,4 @@
# coding: utf-8
##
# String ISO Test
@@ -262,7 +263,7 @@ assert('String#chop', '15.2.10.5.11') do
assert_equal 'abc', c
end
assert('String#chop', '15.2.10.5.11') do
assert('String#chop(UTF-8)', '15.2.10.5.11') do
a = ''.chop
b = 'あいう'.chop
c = "\n".chop.chop
@@ -283,7 +284,7 @@ assert('String#chop!', '15.2.10.5.12') do
assert_equal b, 'ab'
end
assert('String#chop!', '15.2.10.5.12') do
assert('String#chop!(UTF-8)', '15.2.10.5.12') do
a = ''
b = "あいうえ\n"
c = "あいうえ\n"