Sha256: 02250e5443bf529f61725c4a937d5120291cd694f65690816110242654a5a663

Contents?: true

Size: 226 Bytes

Versions: 11

Compression:

Stored size: 226 Bytes

Contents

require 'facets/hash/op_or'
require 'test/unit'

class TC_Hash_Op < Test::Unit::TestCase

  def test_op_or
    a = { :a => 1, :b => 2 }
    b = { :b => 3 }
    r = { :a => 1, :b => 2 }
    assert_equal( r, a | b )
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/hash/test_op_or.rb
facets-2.8.3 test/core/hash/test_op_or.rb
facets-2.8.2 test/core/hash/test_op_or.rb
facets-2.8.1 test/core/hash/test_op_or.rb
facets-2.8.0 test/core/hash/test_op_or.rb
facets-2.7.0 test/core/hash/test_op_or.rb
facets-2.6.0 test/core/hash/test_op_or.rb
facets-2.5.1 test/core/hash/test_op_or.rb
facets-2.5.0 test/core/hash/test_op_or.rb
facets-2.4.5 test/core/hash/test_op_or.rb
facets-2.5.2 test/core/hash/test_op_or.rb