Sha256: 49d7a23e938a78d97331491f7d739df57e950d679baa8c2e2559374cfdf03c95

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

covers 'facets/integer/factorial'

test_case Integer do

  method :factorial do

    test do
      0.factorial.assert == 1
      1.factorial.assert == 1
      2.factorial.assert == 2
      3.factorial.assert == 6
      4.factorial.assert == 24
    end

  end

  method :fac do

    test do
      0.fac.assert == 1
      1.fac.assert == 1
      2.fac.assert == 2
      3.fac.assert == 6
      4.fac.assert == 24
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/integer/test_factorial.rb
facets-3.1.0 test/core/integer/test_factorial.rb
facets-3.0.0 test/core/integer/test_factorial.rb
facets-2.9.3 test/core/integer/test_factorial.rb
facets-2.9.2 test/core/integer/test_factorial.rb