Sha256: 00255fc78a1db1e2f64bcfaa200a5d59fdec3d96ee511c6ffc660e5e5e94fd76

Contents?: true

Size: 348 Bytes

Versions: 15

Compression:

Stored size: 348 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/kernel/test_instance_assign.rb
facets-2.8.3 test/core/kernel/test_instance_assign.rb
facets-2.8.2 test/core/kernel/test_instance_assign.rb
facets-2.8.1 test/core/kernel/test_instance_assign.rb
facets-2.8.0 test/core/kernel/test_instance_assign.rb
facets-2.7.0 test/core/kernel/test_instance_assign.rb
facets-2.6.0 test/core/kernel/test_instance_assign.rb
facets-2.4.1 test/kernel/test_instance_assign.rb
facets-2.4.4 test/core/kernel/test_instance_assign.rb
facets-2.4.3 test/core/kernel/test_instance_assign.rb
facets-2.4.2 test/core/kernel/test_instance_assign.rb
facets-2.4.5 test/core/kernel/test_instance_assign.rb
facets-2.5.1 test/core/kernel/test_instance_assign.rb
facets-2.5.0 test/core/kernel/test_instance_assign.rb
facets-2.5.2 test/core/kernel/test_instance_assign.rb