PageRenderTime 25ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 13 lines | 9 code | 4 blank | 0 comment | 0 complexity | 114730511818f156268be39050e6496b 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/zipnew'
  2. require 'test/unit'
  3. class TC_Hash_ZipNew < Test::Unit::TestCase
  4. def test_zipnew
  5. a = [1,2,3]
  6. b = [4,5,6]
  7. assert_equal( {1=>4,2=>5,3=>6}, Hash.zipnew(a,b) )
  8. end
  9. end