diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-10-01 19:32:29 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-10-01 19:32:29 +0900 |
| commit | 6b3fd18262a69d40c2e7bdfc7140f356084e7865 (patch) | |
| tree | a0765939e9012946187216ae26a9476ba86b8c56 /test/t/string.rb | |
| parent | 0a94c69cc391092470c0c209f62752d0a8149e76 (diff) | |
| download | mruby-6b3fd18262a69d40c2e7bdfc7140f356084e7865.tar.gz mruby-6b3fd18262a69d40c2e7bdfc7140f356084e7865.zip | |
clarify asserts to UTF-8 test suites; ref #2971
Diffstat (limited to 'test/t/string.rb')
| -rw-r--r-- | test/t/string.rb | 5 |
1 files 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" |
