mruby-string-utf8: update UTF-8 tests; ref #2076

parent b2422cf0
# -*- coding: utf-8 -*-
## ##
# String(utf8) Test # String(utf8) Test
...@@ -53,8 +54,8 @@ assert('String#ord') do ...@@ -53,8 +54,8 @@ assert('String#ord') do
end end
assert('String#split') do assert('String#split') do
got = "こんにちわ世界!".split('').map {|x| x.ord} got = "こんにちわ世界!".split('')
assert_equal ['こ', 'ん', 'に', 'ち', 'わ', '世', '界', '!'], got assert_equal ['こ', 'ん', 'に', 'ち', 'わ', '世', '界', '!'], got
got = "こんにちわ世界!".split('に').map {|x| x.ord} got = "こんにちわ世界!".split('に')
assert_equal ['こん', 'ちわ世界!'], got assert_equal ['こん', 'ちわ世界!'], got
end end
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