Browse files

Fixing singularization of "curves"

  • Loading branch information...
1 parent ee16348 commit 9f4ad9418192168489bd99748b05333f6278d123 @ADmad ADmad committed Jul 7, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −1 cake/libs/inflector.php
  2. +1 −0 cake/tests/cases/libs/inflector.test.php
View
3 cake/libs/inflector.php
@@ -147,7 +147,8 @@ class Inflector {
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', '.*ss'
),
'irregular' => array(
- 'waves' => 'wave'
+ 'waves' => 'wave',
+ 'curves' => 'curve'
)
);
View
1 cake/tests/cases/libs/inflector.test.php
@@ -115,6 +115,7 @@ function testInflectingSingulars() {
$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(''), '');
}

0 comments on commit 9f4ad94

Please sign in to comment.