Sha256: 28d2c3066a544b3a6d49edad3a7cbb6f45468e6d42d571958363c85f3b60cc93

Contents?: true

Size: 301 Bytes

Versions: 9

Compression:

Stored size: 301 Bytes

Contents

$:.unshift 'lib'

require "test/unit"
require 'caruby/util/inflector'

class InflectorTest < Test::Unit::TestCase
   def test_quantified_s
    assert_equal("1 person", "person".quantify(1))
    assert_equal("2 people", "person".quantify(2))
    assert_equal("0 people", "person".quantify(0))
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caruby-core-1.5.5 test/lib/caruby/util/inflector_test.rb
caruby-core-1.5.4 test/lib/caruby/util/inflector_test.rb
caruby-core-1.5.3 test/lib/caruby/util/inflector_test.rb
caruby-core-1.5.2 test/lib/caruby/util/inflector_test.rb
caruby-core-1.5.1 test/lib/caruby/util/inflector_test.rb
caruby-core-1.4.9 test/lib/caruby/util/inflector_test.rb
caruby-core-1.4.7 test/lib/caruby/util/inflector_test.rb
caruby-core-1.4.6 test/lib/caruby/util/inflector_test.rb
caruby-core-1.4.5 test/lib/caruby/util/inflector_test.rb