Sha256: 30333b5c948591bd0b9583c0288dca84a5111404c4c07fa4e26b63c9b66ed3a6
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/to_ostruct.rb # # Extracted Mon Jul 03 00:56:56 EDT 2006 # Unit Tools Reap Test Extractor # 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.4.4 | test/lib/facets/core/hash/test_to_ostruct.rb |