Sha256: 54839e3565281d7e9632a9d779f6adb0023e3e9f3a26173f2a655ef811ad0cc7
Contents?: true
Size: 581 Bytes
Versions: 10
Compression:
Stored size: 581 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/integer/factorial.rb # # Extracted Mon Sep 03 16:23:07 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/integer/factorial.rb' require 'test/unit' class TCInteger < Test::Unit::TestCase def test_factorial assert_equal( 1, 0.factorial ) assert_equal( 1, 1.factorial ) assert_equal( 2, 2.factorial ) assert_equal( 6, 3.factorial ) assert_equal( 24, 4.factorial ) end end
Version data entries
10 entries across 10 versions & 1 rubygems