Skip to content

Commit

Permalink
Adding tests for welsh added in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 14, 2010
1 parent 046c233 commit 3d98cc6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cake/tests/cases/libs/l10n.test.php
Expand Up @@ -426,6 +426,10 @@ function testMap() {
$result = $l10n->map(array('xho', 'xh'));
$expected = array('xho' => 'xh', 'xh' => 'xho');
$this->assertEqual($result, $expected);

$result = $l10n->map(array('cy', 'cym'));
$expected = array('cym' => 'cy', 'cy' => 'cym');
$this->assertEqual($result, $expected);

$result = $l10n->map(array('yid', 'yi'));
$expected = array('yid' => 'yi', 'yi' => 'yid');
Expand Down Expand Up @@ -878,6 +882,12 @@ function testCatalog() {
);
$this->assertEqual($result, $expected);

$result = $l10n->catalog(array('cy'));
$expected = array(
'cy' => array('language' => 'Welsh', 'locale' => 'cym', 'localeFallback' => 'cym', 'charset' => 'utf-8')
);
$this->assertEqual($result, $expected);

$result = $l10n->catalog(array('xh'));
$expected = array(
'xh' => array('language' => 'Xhosa', 'locale' => 'xho', 'localeFallback' => 'xho', 'charset' => 'utf-8', 'direction' => 'ltr')
Expand Down

0 comments on commit 3d98cc6

Please sign in to comment.