PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/hash/test_op_or.rb

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | 5879fd50bdf8cc00465414c8d4e4544e MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
  1. require 'facets/hash/op_or'
  2. require 'test/unit'
  3. class TC_Hash_Op < Test::Unit::TestCase
  4. def test_op_or
  5. a = { :a => 1, :b => 2 }
  6. b = { :b => 3 }
  7. r = { :a => 1, :b => 2 }
  8. assert_equal( r, a | b )
  9. end
  10. end