Sha256: 6cf551ebf02daa3f810cd8bd6939a410d4613f87cb12264571ace283756a103f

Contents?: true

Size: 330 Bytes

Versions: 11

Compression:

Stored size: 330 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |
#   |_|\___||___/\__|
#

require 'facets/array/select.rb'

require 'test/unit'

class TestArray < Test::Unit::TestCase

  def test_select!
    a = [1,2,3,4,5,6,7,8,9,10]
    a.select!{ |e| e % 2 == 0 }
    assert_equal( [2,4,6,8,10], a)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.0.2 test/unit/array/test_select.rb
facets-2.1.2 test/unit/array/test_select.rb
facets-2.1.0 test/unit/array/test_select.rb
facets-2.1.1 test/unit/array/test_select.rb
facets-2.0.3 test/unit/array/test_select.rb
facets-2.0.4 test/unit/array/test_select.rb
facets-2.0.5 test/unit/array/test_select.rb
facets-2.2.0 test/unit/array/test_select.rb
facets-2.2.1 test/unit/array/test_select.rb
facets-2.1.3 test/unit/array/test_select.rb
facets-2.3.0 test/core/array/test_select.rb