diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-22 10:51:13 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-22 10:51:13 +0900 |
| commit | 96e806ff052012de3f345ef95da3a3d2334f7f4a (patch) | |
| tree | b65c6685497d0843c6b9034b02d7af0abe78ebdd | |
| parent | 36e234aa377d50d8ee425c7868e0651cf78e85cf (diff) | |
| parent | 61523d0e4f914af0c724511e13b9c497300c6071 (diff) | |
| download | mruby-96e806ff052012de3f345ef95da3a3d2334f7f4a.tar.gz mruby-96e806ff052012de3f345ef95da3a3d2334f7f4a.zip | |
Merge pull request #1723 from akuroda/string_test_cap_down
add tests for String#capitalize!, String#downcase!, and String#upcase!
| -rw-r--r-- | test/t/string.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index c42fa006f..3219f98c3 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -125,6 +125,7 @@ assert('String#capitalize!', '15.2.10.5.8') do a.capitalize! assert_equal 'Abc', a + assert_equal nil, 'Abc'.capitalize! end assert('String#chomp', '15.2.10.5.9') do @@ -204,6 +205,7 @@ assert('String#downcase!', '15.2.10.5.14') do a.downcase! assert_equal 'abc', a + assert_equal nil, 'abc'.downcase! end assert('String#each_line', '15.2.10.5.15') do @@ -442,6 +444,7 @@ assert('String#upcase!', '15.2.10.5.43') do a.upcase! assert_equal 'ABC', a + assert_equal nil, 'ABC'.upcase! end # Not ISO specified |
