e7fdb7ca871ce9617d272cab406b4669498ef5e1
[lhc/web/wiklou.git] / tests / phpunit / languages / LanguageBe_taraskTest.php
1 <?php
2
3 class LanguageBeTaraskTest extends MediaWikiTestCase {
4 private $lang;
5
6 function setUp() {
7 $this->lang = Language::factory( 'Be-tarask' );
8 }
9 function tearDown() {
10 unset( $this->lang );
11 }
12
13 /** see bug 23156 & r64981 */
14 function testSearchRightSingleQuotationMarkAsApostroph() {
15 $this->assertEquals(
16 "'",
17 $this->lang->normalizeForSearch( '’' ),
18 'bug 23156: U+2019 conversion to U+0027'
19 );
20 }
21 /** see bug 23156 & r64981 */
22 function testCommafy() {
23 $this->assertEquals( '1,234,567', $this->lang->commafy( '1234567' ) );
24 $this->assertEquals( '12,345', $this->lang->commafy( '12345' ) );
25 }
26 /** see bug 23156 & r64981 */
27 function testDoesNotCommafyFourDigitsNumber() {
28 $this->assertEquals( '1234', $this->lang->commafy( '1234' ) );
29 }
30 }