PageRenderTime 25ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/integer/test_ordinal.rb

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | 9cd7b13af07d19968dd61d87af8b4e79 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
  1. require 'test/unit'
  2. require 'facets/integer/ordinal'
  3. class TestIntegerOrdinal < Test::Unit::TestCase
  4. def test_ordinal
  5. assert_equal( '1st', 1.ordinal )
  6. assert_equal( '2nd', 2.ordinal )
  7. assert_equal( '3rd', 3.ordinal )
  8. assert_equal( '4th', 4.ordinal )
  9. end
  10. end