Sha256: e565af8e32f70be2a87bea43293fe930d83c8024f2d013ff0cb8cefc753adc6c

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

covers 'facets/array/recurse'

testcase Array do

  unit :recurse do
    a = ["a", ["b", "c", nil], nil]
    r = a.recurse{|a| a.compact! }
    r.assert ["a", ["b", "c"]]
  end

  unit :recurse! do
    a = ["a", ["b", "c", nil], nil]
    a.recurse!{|a| a.compact! }
    a.assert ["a", ["b", "c"]]
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.9.0.pre.2 test/core/array/test_recurse.rb
facets-2.9.0.pre.1 test/core/array/test_recurse.rb