From 6b3fd18262a69d40c2e7bdfc7140f356084e7865 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 1 Oct 2015 19:32:29 +0900 Subject: clarify asserts to UTF-8 test suites; ref #2971 --- test/t/string.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/t/string.rb b/test/t/string.rb index da75bdd84..fbaada451 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -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" -- cgit v1.2.3