Sha256: 2aac85f7fc477405c5a1e625b0ac0723eae29f9b9115ab5999d605706d995d7c
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
# -*- encoding: utf-8 -*- require 'test_helper' require 'inflections/tr' class TestTurkishInflections < MiniTest::Unit::TestCase def test_regular_plurals assert_equal 'günler', 'gün'.pluralize assert_equal 'gün', 'günler'.singularize assert_equal 'kirazlar', 'kiraz'.pluralize assert_equal 'kiraz', 'kirazlar'.singularize assert_equal 'kitaplar', 'kitap'.pluralize assert_equal 'kitap', 'kitaplar'.singularize assert_equal 'köpekler', 'köpek'.pluralize assert_equal 'köpek', 'köpekler'.singularize assert_equal 'testler', 'test'.pluralize assert_equal 'test', 'testler'.singularize assert_equal 'üçgenler', 'üçgen'.pluralize assert_equal 'üçgen', 'üçgenler'.singularize end def test_irregulars assert_equal 'biz', 'ben'.pluralize assert_equal 'ben', 'biz'.singularize assert_equal 'siz', 'sen'.pluralize assert_equal 'sen', 'siz'.singularize assert_equal 'o', 'onlar'.singularize assert_equal 'onlar', 'o'.pluralize end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inflections-3.3.0 | test/tr_test.rb |
inflections-3.2.12.20130314 | test/tr_test.rb |
inflections-3.2.12.20130305 | test/tr_test.rb |
inflections-3.2.12 | test/tr_test.rb |