Sha256: adcddcaf272b951218dd453835c51c0df825133f19194a17deb955a51f4265fc

Contents?: true

Size: 235 Bytes

Versions: 16

Compression:

Stored size: 235 Bytes

Contents

require 'facets/hash/insert'
require 'test/unit'

class TC_Hash_Prime < Test::Unit::TestCase

  def test_insert
    h = { :a=>1, :b=>2 }
    assert_equal( true  , h.insert(:c,3) )
    assert_equal( false , h.insert(:a,0) )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/hash/test_insert.rb
facets-2.8.3 test/core/hash/test_insert.rb
facets-2.8.2 test/core/hash/test_insert.rb
facets-2.8.1 test/core/hash/test_insert.rb
facets-2.8.0 test/core/hash/test_insert.rb
facets-2.7.0 test/core/hash/test_insert.rb
facets-2.6.0 test/core/hash/test_insert.rb
facets-2.4.0 test/hash/test_insert.rb
facets-2.4.1 test/hash/test_insert.rb
facets-2.4.4 test/core/hash/test_insert.rb
facets-2.4.3 test/core/hash/test_insert.rb
facets-2.4.2 test/core/hash/test_insert.rb
facets-2.5.0 test/core/hash/test_insert.rb
facets-2.4.5 test/core/hash/test_insert.rb
facets-2.5.1 test/core/hash/test_insert.rb
facets-2.5.2 test/core/hash/test_insert.rb