mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add test case to #flatten
This commit is contained in:
@@ -155,6 +155,14 @@ assert("Set#flatten") do
|
||||
assert_raise(ArgumentError) {
|
||||
set1.flatten
|
||||
}
|
||||
|
||||
# test4; miscellaneous
|
||||
empty = Set[]
|
||||
set = Set[Set[empty, "a"], Set[empty, "b"]]
|
||||
|
||||
assert_nothing_raised {
|
||||
set.flatten
|
||||
}
|
||||
end
|
||||
|
||||
assert("Set#flatten!") do
|
||||
|
||||
Reference in New Issue
Block a user