Sha256: 5c84f2fa43f4d53f70a693833acc297a45af8f1015597d54190b9f07a3c6dea3

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

covers 'facets/array/traverse'

testcase Array do

  unit :traverse do
    a = ["A", "B", ["X", "Y"]]
    g = a.traverse{ |e| e.downcase }
    g.assert == ["a", "b", ["x", "y"]]
  end

  unit :traverse! do
    a = ["A", "B", ["X", "Y"]]
    a.traverse!{ |e| e.downcase }
    a.assert == ["a", "b", ["x", "y"]]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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