mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add tests for String#capitalize! and String#downcase!
This commit is contained in:
@@ -118,6 +118,7 @@ assert('String#capitalize', '15.2.10.5.7') do
|
||||
|
||||
assert_equal 'abc', a
|
||||
assert_equal 'Abc', 'abc'.capitalize
|
||||
assert_equal nil, 'Abc'.capitalize!
|
||||
end
|
||||
|
||||
assert('String#capitalize!', '15.2.10.5.8') do
|
||||
@@ -196,6 +197,7 @@ assert('String#downcase', '15.2.10.5.13') do
|
||||
|
||||
assert_equal 'abc', a
|
||||
assert_equal 'ABC', b
|
||||
assert_equal nil, 'abc'.downcase!
|
||||
end
|
||||
|
||||
assert('String#downcase!', '15.2.10.5.14') do
|
||||
|
||||
Reference in New Issue
Block a user