Fixing singularization of "curves"

This commit is contained in:
ADmad 2011-07-07 22:54:24 +05:30
parent ee1634819a
commit 9f4ad94181
2 changed files with 3 additions and 1 deletions

View file

@ -147,7 +147,8 @@ class Inflector {
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', '.*ss'
),
'irregular' => array(
'waves' => 'wave'
'waves' => 'wave',
'curves' => 'curve'
)
);

View file

@ -115,6 +115,7 @@ class InflectorTest extends CakeTestCase {
$this->assertEqual(Inflector::singularize('diagnoses'), 'diagnosis');
$this->assertEqual(Inflector::singularize('bases'), 'basis');
$this->assertEqual(Inflector::singularize('analyses'), 'analysis');
$this->assertEqual(Inflector::singularize('curves'), 'curve');
$this->assertEqual(Inflector::singularize(''), '');
}