diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-12 16:03:50 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-12 16:03:50 +0900 |
| commit | f5e14afacc27dad54e4c239939801ef8e2544fb2 (patch) | |
| tree | dec01a811532d50149437c1c5c0ee47d343a8914 /mrbgems/mruby-array-ext/test/array.rb | |
| parent | 141593ee095fbe17857c4a3af6fba801b98845b4 (diff) | |
| parent | c471cea4d72114b9f8c31828ff97ef7755e2e992 (diff) | |
| download | mruby-f5e14afacc27dad54e4c239939801ef8e2544fb2.tar.gz mruby-f5e14afacc27dad54e4c239939801ef8e2544fb2.zip | |
Merge pull request #2051 from suzukaze/add-array_bang_test
Add Array#uniq! test
Diffstat (limited to 'mrbgems/mruby-array-ext/test/array.rb')
| -rw-r--r-- | mrbgems/mruby-array-ext/test/array.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb index 3950307d1..9a0f25f9a 100644 --- a/mrbgems/mruby-array-ext/test/array.rb +++ b/mrbgems/mruby-array-ext/test/array.rb @@ -33,6 +33,9 @@ assert("Array#uniq!") do a = [1, 2, 3, 1] a.uniq! assert_equal [1, 2, 3], a + + b = [ "a", "b", "c" ] + assert_nil b.uniq! end assert("Array#uniq") do |
