Sha256: 72c68a75530b971d276f42422467d1a5e155c6c2b04880a906de5576f4388533

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/has_keys.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/hash/has_keys.rb'


  require 'test/unit'

  class TCHash < Test::Unit::TestCase

    def test_has_keys?
      assert( { :a=>1,:b=>2,:c=>3 }.has_keys?(:a,:b) )
      assert( ! { :a=>1,:b=>2,:c=>3 }.has_keys?(:a,:b,:d) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/hash/test_has_keys.rb