summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-12 16:03:50 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-12 16:03:50 +0900
commitf5e14afacc27dad54e4c239939801ef8e2544fb2 (patch)
treedec01a811532d50149437c1c5c0ee47d343a8914 /mrbgems/mruby-array-ext
parent141593ee095fbe17857c4a3af6fba801b98845b4 (diff)
parentc471cea4d72114b9f8c31828ff97ef7755e2e992 (diff)
downloadmruby-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')
-rw-r--r--mrbgems/mruby-array-ext/test/array.rb3
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