Sha256: aaee35b8993c7a024c8c04513a6e64438d7c752104a08e1b10e89684d9baaf0c
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/overload.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/more/overload.rb' require 'test/unit' class TCOverload < Test::Unit::TestCase class X def x "hello" end overload :x, Integer do |i| i end overload :x, String, String do |s1, s2| [s1, s2] end end def setup @x = X.new end def test_x assert_equal( "hello", @x.x ) end def test_i assert_equal( 1, @x.x(1) ) end def test_s assert_equal( ["a","b"], @x.x("a","b") ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/more/test_overload.rb |