Skip to content

Commit

Permalink
fixed typo in test cases for ordinal
Browse files Browse the repository at this point in the history
  • Loading branch information
ritesh-pandey committed Sep 2, 2015
1 parent 971ebf6 commit 86eedff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/TestCase/I18n/NumberTest.php
Expand Up @@ -550,20 +550,20 @@ public function testOrdinal()
$result = $this->Number->ordinal(1);
$this->assertEquals('1st', $result);

$result = $this->Number->toReadableSize(2);
$result = $this->Number->ordinal(2);
$this->assertEquals('2nd', $result);

$result = $this->Number->toReadableSize(3);
$result = $this->Number->ordinal(3);
$this->assertEquals('3rd', $result);

$result = $this->Number->toReadableSize(4);
$result = $this->Number->ordinal(4);
$this->assertEquals('4th', $result);

I18n::locale('fr_FR');
$result = $this->Number->toReadableSize(1);
$result = $this->Number->ordinal(1);
$this->assertEquals('1er', $result);

$result = $this->Number->toReadableSize(2);
$result = $this->Number->ordinal(2);
$this->assertEquals('2e', $result);
}
}

0 comments on commit 86eedff

Please sign in to comment.