PageRenderTime 28ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | 4b8175023f7f0586b8d8c540b59ae1b2 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_add'
  2. require 'test/unit'
  3. class TC_Hash_Op < Test::Unit::TestCase
  4. def test_op_and
  5. a = { :a => 1, :b => 2 }
  6. b = { :b => 3, :c => 4 }
  7. r = { :a => 1, :b => 3, :c => 4 }
  8. assert_equal( r, a + b )
  9. end
  10. end