fedora-migrator /vendor/gems/facets-2.4.5/test/core/kernel/test_instance_assign.rb

Language Ruby Lines 17
MD5 Hash aedfb2fd5d9e6cc196b0295d3deeaa6b Estimated Cost $237 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
require 'facets/kernel/instance_assign.rb'
require 'test/unit'

class TestKernelInstanceAssign < Test::Unit::TestCase

  def test_instance_assign
    ahash = { "z"=>0, "@a"=>1, "@b"=>2 } #, "@@a"=>3 }
    instance_assign( ahash )
    assert_equal( 0, @z )
    assert_equal( 1, @a )
    assert_equal( 2, @b )
    #assert_equal( 3, @@a )
  end

end
Back to Top