Skip to content

Commit

Permalink
Adding additional test cases for nld, dut, and nl. Closes #795
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 8, 2010
1 parent 94fc492 commit ccd036e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cake/tests/cases/libs/l10n.test.php
Expand Up @@ -194,6 +194,10 @@ function testMap() {
$result = $l10n->map(array('nld', 'nl'));
$expected = array('nld' => 'nl', 'nl' => 'dut');
$this->assertEqual($result, $expected);

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

$result = $l10n->map(array('eng', 'en'));
$expected = array('eng' => 'en', 'en' => 'eng');
Expand Down Expand Up @@ -745,6 +749,18 @@ function testCatalog() {
);
$this->assertEqual($result, $expected);

$result = $l10n->catalog('nl');
$expected = array('language' => 'Dutch (Standard)', 'locale' => 'dut', 'localeFallback' => 'dut', 'charset' => 'utf-8', 'direction' => 'ltr');
$this->assertEqual($result, $expected);

$result = $l10n->catalog('nld');
$expected = array('language' => 'Dutch (Standard)', 'locale' => 'dut', 'localeFallback' => 'dut', 'charset' => 'utf-8', 'direction' => 'ltr');
$this->assertEqual($result, $expected);

$result = $l10n->catalog('dut');
$expected = array('language' => 'Dutch (Standard)', 'locale' => 'dut', 'localeFallback' => 'dut', 'charset' => 'utf-8', 'direction' => 'ltr');
$this->assertEqual($result, $expected);

$result = $l10n->catalog(array('nb'));
$expected = array(
'nb' => array('language' => 'Norwegian Bokmal', 'locale' => 'nob', 'localeFallback' => 'nor', 'charset' => 'utf-8', 'direction' => 'ltr')
Expand Down

0 comments on commit ccd036e

Please sign in to comment.