# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/hash/has_only_keys.rb # # Extracted Wed Jan 25 11:25:39 EST 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