summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/test
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2014-04-12 15:54:25 +0900
committerJun Hiroe <[email protected]>2014-04-12 15:57:14 +0900
commitc471cea4d72114b9f8c31828ff97ef7755e2e992 (patch)
treedec01a811532d50149437c1c5c0ee47d343a8914 /mrbgems/mruby-array-ext/test
parent141593ee095fbe17857c4a3af6fba801b98845b4 (diff)
downloadmruby-c471cea4d72114b9f8c31828ff97ef7755e2e992.tar.gz
mruby-c471cea4d72114b9f8c31828ff97ef7755e2e992.zip
Add Array#uniq_bang test
Diffstat (limited to 'mrbgems/mruby-array-ext/test')
-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