Sha256: d3a2ec1d92233021e5c3980f923068e9132882f1a425b51413c880311876d91b
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/comparable/clip.rb # # Extracted Tue Jul 25 10:07:15 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/comparable/clip.rb' require 'test/unit' class TCComparable < Test::Unit::TestCase def test_clip assert_equal( 4, 3.clip(4) ) assert_equal( 4, 4.clip(4) ) assert_equal( 5, 5.clip(4) ) assert_equal( 4, 4.clip(3,5) ) assert_equal( 3, 3.clip(3,5) ) assert_equal( 5, 5.clip(3,5) ) assert_equal( 3, 2.clip(3,5) ) assert_equal( 5, 6.clip(3,5) ) assert_equal( 'd', 'd'.clip('c','e') ) assert_equal( 'c', 'c'.clip('c','e') ) assert_equal( 'e', 'e'.clip('c','e') ) assert_equal( 'c', 'b'.clip('c','e') ) assert_equal( 'e', 'f'.clip('c','e') ) end def test_cap assert_equal( 3, 3.cap(4) ) assert_equal( 4, 4.cap(4) ) assert_equal( 4, 5.cap(4) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.0 | test/lib/facets/core/comparable/test_clip.rb |