Sha256: 8914ad929e5b2c770b20b5e66b5e7070c498863821b8d195016f1d395e781607

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/singular.rb
#
# Extracted Fri Feb 16 02:00:37 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/string/singular.rb'


  require 'test/unit'

  # Singular

  class TestStringSingular < Test::Unit::TestCase

    def test_singular_01
      assert_equal "friend" , "friends".singular
    end

    def test_singular_02
      assert_equal "man"    , "men".singular
    end

    def test_singular_03
      assert_equal "girl"   , "girls".singular
    end

    def test_singular_04
      assert_equal "half"   , "halves".singular
    end

    def test_singular_05
      assert_equal "ox"     , "oxen".singular
    end

    def test_singular_06
      assert_equal "forum"  , "fora".singular
    end

    def test_singular_07
      assert_equal "fish"   , "fish".singular
    end

  end

  # Plural

  class TestStringPlural < Test::Unit::TestCase

    def test_plural_01
      assert_equal "friends" , "friend".plural
    end

    def test_plural_02
      assert_equal "men"     , "man".plural
    end

    def test_plural_03
      assert_equal "girls"   , "girl".plural
    end

    def test_plural_04
      assert_equal "halves"  , "half".plural
    end

    def test_plural_05
      assert_equal "oxen"    , "ox".plural
    end

    def test_plural_06
      assert_equal "fora"    , "forum".plural
    end

    def test_plural_07
      assert_equal "fish"    , "fish".plural
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/string/test_singular.rb