Sha256: d4980d76a15fe6d509d70efb8c74f8e70d3ff37cfa9159629e8ea954ff8036cc

Contents?: true

Size: 230 Bytes

Versions: 4

Compression:

Stored size: 230 Bytes

Contents

covers 'facets/array/pull'

tests Array do

  unit :poke do
    a = [1,2,3]
    a.poke(9)
    a.assert == [9,1,2,3]
  end

  unit :poke do
    a = [2,3]
    a.poke(1).assert == [1,2,3]
    a.poke(4).assert == [4,1,2,3]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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