diff options
| author | Kenji Okimoto <[email protected]> | 2017-04-03 16:46:47 +0900 |
|---|---|---|
| committer | Kenji Okimoto <[email protected]> | 2017-04-03 16:46:47 +0900 |
| commit | cff54ab2f3de9143cbbb8094f833b28c7b94916d (patch) | |
| tree | 76a94a155c6bd2e49aa09e78627919b084dd614b /mrbgems/mruby-enum-ext/test/enum.rb | |
| parent | 666787beb23637e4c1856011e04cef86380fdb2d (diff) | |
| download | mruby-cff54ab2f3de9143cbbb8094f833b28c7b94916d.tar.gz mruby-cff54ab2f3de9143cbbb8094f833b28c7b94916d.zip | |
Change return value of Enumerable#each_slice
More compatibility to CRuby.
Diffstat (limited to 'mrbgems/mruby-enum-ext/test/enum.rb')
| -rw-r--r-- | mrbgems/mruby-enum-ext/test/enum.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-enum-ext/test/enum.rb b/mrbgems/mruby-enum-ext/test/enum.rb index 076562f45..f6cb23168 100644 --- a/mrbgems/mruby-enum-ext/test/enum.rb +++ b/mrbgems/mruby-enum-ext/test/enum.rb @@ -31,8 +31,9 @@ end assert("Enumerable#each_slice") do a = [] - (1..10).each_slice(3){|e| a << e} + b = (1..10).each_slice(3){|e| a << e} assert_equal [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]], a + assert_equal nil, b end assert("Enumerable#group_by") do |
