repo.or.cz
/
mruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
141593e
)
Add Array#uniq_bang test
author
Jun Hiroe
<
[email protected]
>
Sat, 12 Apr 2014 06:54:25 +0000
(12 15:54 +0900)
committer
Jun Hiroe
<
[email protected]
>
Sat, 12 Apr 2014 06:57:14 +0000
(12 15:57 +0900)
mrbgems/mruby-array-ext/test/array.rb
patch
|
blob
|
blame
|
history
diff --git
a/mrbgems/mruby-array-ext/test/array.rb
b/mrbgems/mruby-array-ext/test/array.rb
index
3950307
..
9a0f25f
100644
(file)
--- 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