Sha256: 6692bd06af3d2e900de1322eeb7d2dc85df26472e7d0a6ace9376fdff7701241

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

covers 'facets/integer/ordinal'

test_case Integer do

  method :ordinal do

    test do
      1.ordinal.assert == '1st'
      2.ordinal.assert == '2nd'
      3.ordinal.assert == '3rd'
      4.ordinal.assert == '4th'
    end

  end

  method :ordinalize do

    test do
      1.ordinalize.assert == '1st'
      2.ordinalize.assert == '2nd'
      3.ordinalize.assert == '3rd'
      4.ordinalize.assert == '4th'
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

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