Sha256: 9db8f887335092c6f3725371fb64cabf2257e53fd11eae87ef8bc57b468ba9d4

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/has_only_keys.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/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

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.30 test/lib/facets/core/hash/test_has_only_keys.rb