Sha256: 2e3e7e3ec9b6c6c8735dc41c0a2244e3cc20c5d7b3b77e4307bc987f0829923c

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 Bytes

Contents

covers 'facets/array/traverse'

test_case Array do

  method :traverse do

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

  end

  method :traverse! do

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

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/array/test_traverse.rb
facets-3.1.0 test/core/array/test_traverse.rb
facets-3.0.0 test/core/array/test_traverse.rb
facets-2.9.3 test/core/array/test_traverse.rb
facets-2.9.2 test/core/array/test_traverse.rb