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

Version Path
facets-2.8.4 test/core/integer/test_factorial.rb
facets-2.8.3 test/core/integer/test_factorial.rb
facets-2.8.2 test/core/integer/test_factorial.rb
facets-2.8.1 test/core/integer/test_factorial.rb
facets-2.8.0 test/core/integer/test_factorial.rb
facets-2.7.0 test/core/integer/test_factorial.rb
facets-2.6.0 test/core/integer/test_factorial.rb
facets-2.4.0 test/integer/test_factorial.rb
facets-2.4.1 test/integer/test_factorial.rb
facets-2.4.4 test/core/integer/test_factorial.rb
facets-2.4.3 test/core/integer/test_factorial.rb
facets-2.4.2 test/core/integer/test_factorial.rb
facets-2.5.1 test/core/integer/test_factorial.rb
facets-2.4.5 test/core/integer/test_factorial.rb
facets-2.5.0 test/core/integer/test_factorial.rb
facets-2.5.2 test/core/integer/test_factorial.rb