Sha256: 5f967c21f69bc3b42007437add877fc4f8fa75fe76992ed5847d2acae1e610e2
Contents?: true
Size: 917 Bytes
Versions: 2
Compression:
Stored size: 917 Bytes
Contents
# encoding: utf-8 require 'test/unit' require 'lib/geokit' class InflectorTest < Test::Unit::TestCase #:nodoc: all def test_titleize assert_equal 'Sugar Grove', Geokit::Inflector.titleize('Sugar Grove') assert_equal 'Sugar Grove', Geokit::Inflector.titleize('Sugar grove') assert_equal 'Sugar Grove', Geokit::Inflector.titleize('sugar Grove') assert_equal 'Sugar Grove', Geokit::Inflector.titleize('sugar grove') end def test_titleize_with_unicode assert_equal 'Borås', Geokit::Inflector.titleize('Borås') assert_equal 'Borås', Geokit::Inflector.titleize('borås') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('Borås (Abc)') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('Borås (abc)') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('borås (Abc)') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('borås (abc)') end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
keeguon-geokit-1.6.6 | test/test_inflector.rb |
geokit-1.6.5 | test/test_inflector.rb |