Sha256: 47d29806e12f2020f13ec53e386d19d0eec3dacb0b1c448b91214fa27e28c35c

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/integer/factorial.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/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

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/integer/test_factorial.rb