Sha256: 79d64c75d83afe579df642ff52ec927814d661d2d00f31e09872843e053d7006

Contents?: true

Size: 202 Bytes

Versions: 16

Compression:

Stored size: 202 Bytes

Contents

require 'facets/hash/at'
require 'test/unit'

class TC_Hash_At < Test::Unit::TestCase

  def test_at
    h = { :a=>1, :b=>2 }
    assert_equal( 1, h.at(:a) )
    assert_equal( 2, h.at(:b) )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

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