Sha256: e6dc8c88ec518b47bc224217bd2c6a5abddb0416018a6474910d6a11ecc31731

Contents?: true

Size: 282 Bytes

Versions: 16

Compression:

Stored size: 282 Bytes

Contents

require 'test/unit'
require 'facets/integer/ordinal'

class TestIntegerOrdinal < Test::Unit::TestCase

  def test_ordinal
    assert_equal( '1st', 1.ordinal )
    assert_equal( '2nd', 2.ordinal )
    assert_equal( '3rd', 3.ordinal )
    assert_equal( '4th', 4.ordinal )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

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