/vendor/gems/facets-2.4.5/test/core/hash/test_at.rb
Ruby | 13 lines | 9 code | 4 blank | 0 comment | 0 complexity | 7beb76ba7ef739a8343fb298a588e166 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- 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