Sha256: a510b90ede838bbf828870df08c2b1a3c77e6ff84754c5591f49adafc71cc8b7
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/kernel/set_with.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/kernel/set_with.rb' require 'test/unit' class TCKernel < Test::Unit::TestCase Customer = Struct.new( "Customer", :name, :address, :zip ) def test_set_with bob = Customer.new() sethash = { :name => "Bob Sawyer", :address => "123 Maple, Anytown NC", :zip => 12345 } bob.set_with(sethash) assert_equal("Bob Sawyer", bob.name) assert_equal("123 Maple, Anytown NC", bob.address) assert_equal(12345, bob.zip) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/kernel/test_set_with.rb |