Sha256: dd78db34fdba9c5dbfcd4f5c26a3593fae84d17ee7fae49e85178b9a78590fed
Contents?: true
Size: 924 Bytes
Versions: 29
Compression:
Stored size: 924 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
29 entries across 29 versions & 16 rubygems