diff options
| author | Akito Mochizuki <[email protected]> | 2014-06-19 17:34:17 +0900 |
|---|---|---|
| committer | Akito Mochizuki <[email protected]> | 2014-06-19 17:34:17 +0900 |
| commit | ec04fa7e8d60971fb4b51255c6e84a81f87a0593 (patch) | |
| tree | 87e33b17c5ddc793d079d5c3d77fc10021658fcc /mrbgems/mruby-string-ext/test | |
| parent | ba0ddb78199dca7e58e4f0fb3982e52059242900 (diff) | |
| download | mruby-ec04fa7e8d60971fb4b51255c6e84a81f87a0593.tar.gz mruby-ec04fa7e8d60971fb4b51255c6e84a81f87a0593.zip | |
Modify return value of String#slice! if idx == self.size
Diffstat (limited to 'mrbgems/mruby-string-ext/test')
| -rw-r--r-- | mrbgems/mruby-string-ext/test/string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-string-ext/test/string.rb b/mrbgems/mruby-string-ext/test/string.rb index 01c0be9d2..2a8dd0cca 100644 --- a/mrbgems/mruby-string-ext/test/string.rb +++ b/mrbgems/mruby-string-ext/test/string.rb @@ -218,7 +218,7 @@ assert('String#slice!') do assert_equal "Foo", a a = "FooBar" - assert_nil a.slice!(6, 2) + assert_equal "", a.slice!(6, 2) assert_equal "FooBar", a a = "FooBar" |
