Index: trunk/phase3/maintenance/tests/phpunit/languages/LanguageBe_taraskTest.php |
— | — | @@ -0,0 +1,31 @@ |
| 2 | +<?php |
| 3 | +require_once dirname(dirname(__FILE__)). '/bootstrap.php'; |
| 4 | + |
| 5 | +class LanguageBeTaraskTest extends MediaWikiTestSetup { |
| 6 | + private $lang; |
| 7 | + |
| 8 | + function setUp() { |
| 9 | + $this->lang = Language::factory( 'Be_tarask' ); |
| 10 | + } |
| 11 | + function tearDown() { |
| 12 | + unset( $this->lang ); |
| 13 | + } |
| 14 | + |
| 15 | + /** see bug 23156 & r64981 */ |
| 16 | + function testSearchRightSingleQuotationMarkAsApostroph() { |
| 17 | + $this->assertEquals( |
| 18 | + "'", |
| 19 | + $this->lang->normalizeForSearch( '’' ), |
| 20 | + 'bug 23156: U+2019 conversion to U+0027' |
| 21 | + ); |
| 22 | + } |
| 23 | + /** see bug 23156 & r64981 */ |
| 24 | + function testCommafy() { |
| 25 | + $this->assertEquals( '1,234,567', $this->lang->commafy( '1234567' ) ); |
| 26 | + $this->assertEquals( '12,345', $this->lang->commafy( '12345' ) ); |
| 27 | + } |
| 28 | + /** see bug 23156 & r64981 */ |
| 29 | + function testDoesNotCommafyFourDigitsNumber() { |
| 30 | + $this->assertEquals( '1234', $this->lang->commafy( '1234' ) ); |
| 31 | + } |
| 32 | +} |
Property changes on: trunk/phase3/maintenance/tests/phpunit/languages/LanguageBe_taraskTest.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 33 | + native |