mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add dependency from mruby-string-utf8 to mruby-string-ext to ensure loading order
This commit is contained in:
@@ -2,4 +2,5 @@ MRuby::Gem::Specification.new('mruby-string-utf8') do |spec|
|
||||
spec.license = 'MIT'
|
||||
spec.author = 'mruby developers'
|
||||
spec.summary = 'UTF-8 support in String class'
|
||||
spec.add_dependency('mruby-string-ext', :core => 'mruby-string-ext')
|
||||
end
|
||||
|
||||
@@ -67,6 +67,6 @@ assert('String#rindex') do
|
||||
assert_equal 3, str.rindex('ち', 10)
|
||||
end
|
||||
|
||||
assert('String#chr') do
|
||||
assert('String#chr(utf-8)') do
|
||||
assert_equal "こ", "こんにちは世界!".chr
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user