Add Array#uniq_bang test
authorJun Hiroe <[email protected]>
Sat, 12 Apr 2014 06:54:25 +0000 (12 15:54 +0900)
committerJun Hiroe <[email protected]>
Sat, 12 Apr 2014 06:57:14 +0000 (12 15:57 +0900)
mrbgems/mruby-array-ext/test/array.rb

index 3950307..9a0f25f 100644 (file)
@@ -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