Sha256: 84e428472428c4cda842bd4e1aa9aef8083ce7f2d0f8445a9d482c0076d285fd
Contents?: true
Size: 320 Bytes
Versions: 16
Compression:
Stored size: 320 Bytes
Contents
require 'facets/integer/factorial' require 'test/unit' class TC_Integer_Factorial < 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
16 entries across 16 versions & 1 rubygems