From 61bb16ee2e5f0a66234e1575242169a10fde47b5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 7 Jul 2006 14:54:15 +0000 Subject: Merge from 3.0 branch till 1253. --- .../UnitTests/framework/I18N/testChoiceFormat.php | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 tests/UnitTests/framework/I18N/testChoiceFormat.php (limited to 'tests/UnitTests/framework/I18N/testChoiceFormat.php') diff --git a/tests/UnitTests/framework/I18N/testChoiceFormat.php b/tests/UnitTests/framework/I18N/testChoiceFormat.php deleted file mode 100644 index 8cc3f1d3..00000000 --- a/tests/UnitTests/framework/I18N/testChoiceFormat.php +++ /dev/null @@ -1,34 +0,0 @@ -UnitTestCase(); - } - - function testChoices() - { - $choice = new ChoiceFormat(); - $string = '[0] are no files |[1] is one file |(1,Inf] are {number} files'; - - $want = 'are no files'; - $this->assertEqual($want, $choice->format($string, 0)); - - $want = 'is one file'; - $this->assertEqual($want, $choice->format($string, 1)); - - $want = 'are {number} files'; - $this->assertEqual($want, $choice->format($string, 5)); - - $this->assertFalse($choice->format($string, -1)); - - $string = '{1,2} one two |{3,4} three four |[2,5] two to five inclusive'; - $this->assertEqual($choice->format($string,1),'one two'); - $this->assertEqual($choice->format($string,2.1),'two to five inclusive'); - $this->assertEqual($choice->format($string,3),'three four'); - } -} - -?> \ No newline at end of file -- cgit v1.2.3