Skip to content
Permalink
Browse files

Adding additional test cases for nld, dut, and nl. Closes #795

  • Loading branch information...
markstory committed Jun 8, 2010
1 parent 94fc492 commit ccd036eed03af678ecf3f2ecff6d29e945f877dd
Showing with 16 additions and 0 deletions.
  1. +16 −0 cake/tests/cases/libs/l10n.test.php
@@ -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');
@@ -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')

0 comments on commit ccd036e

Please sign in to comment.
You can’t perform that action at this time.