Sha256: 4f56dbc14a7bc4d1be3a4bec7893c4138bc62ece8d0b31469d70886df12d943f
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/hash/has_only_keys.rb # # Extracted Mon Mar 13 13:24:08 UTC 2006 # Unit Tools Reap Test Extractor # require 'facet/hash/has_only_keys.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_has_only_keys? assert( { :a=>1,:b=>2,:c=>3 }.has_only_keys?(:a,:b,:c) ) assert( ! { :a=>1,:b=>2,:c=>3 }.has_only_keys?(:a,:b) ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-1.2.0 | test/lib/facet/hash/test_has_only_keys.rb |
facets-1.1.0 | test/lib/facet/hash/test_has_only_keys.rb |