Sha256: 985cf097e70e4794a1d5ac9c3c97083d1c1eed29617b2b939c7f6b90f60b6212
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/numeric/succ.rb # # Extracted Tue Jul 25 10:07:15 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/numeric/succ.rb' require 'test/unit' class TCNumeric < Test::Unit::TestCase def test_pred assert_equal( 3, 4.pred ) assert_equal( -3, -2.pred ) assert_equal( 2, 4.pred(2) ) assert_equal( -4, -2.pred(2) ) assert_equal( 6, 4.pred(-2) ) assert_equal( 0, -2.pred(-2) ) end def test_succ assert_equal( 5, 4.succ ) assert_equal( -1, -2.succ ) assert_equal( 6, 4.succ(2) ) assert_equal( 0, -2.succ(2) ) assert_equal( 2, 4.succ(-2) ) assert_equal( -4, -2.succ(-2) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.0 | test/lib/facets/core/numeric/test_succ.rb |