Sha256: d0db14a830588437c8fdc7798577a81116aa6261ceebee501db71300c91b8e5a
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/to_ostruct.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/hash/to_ostruct.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_to_ostruct a = { :a => 1, :b => 2, :c => 3 } ao = a.to_ostruct assert_equal( a[:a], ao.a ) assert_equal( a[:b], ao.b ) assert_equal( a[:c], ao.c ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/core/hash/test_to_ostruct.rb |