# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # 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