Skip to content
Permalink
Browse files

Fixing singularization of "curves"

  • Loading branch information...
ADmad committed Jul 7, 2011
1 parent ee16348 commit 9f4ad9418192168489bd99748b05333f6278d123
Showing with 3 additions and 1 deletion.
  1. +2 −1 cake/libs/inflector.php
  2. +1 −0 cake/tests/cases/libs/inflector.test.php
@@ -147,7 +147,8 @@ class Inflector {
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', '.*ss'
),
'irregular' => array(
'waves' => 'wave'
'waves' => 'wave',
'curves' => 'curve'
)
);
@@ -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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.