3 class LanguageBeTaraskTest
extends MediaWikiTestCase
{
7 $this->lang
= Language
::factory( 'Be-tarask' );
13 /** see bug 23156 & r64981 */
14 function testSearchRightSingleQuotationMarkAsApostroph() {
17 $this->lang
->normalizeForSearch( '’' ),
18 'bug 23156: U+2019 conversion to U+0027'
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' ) );
26 /** see bug 23156 & r64981 */
27 function testDoesNotCommafyFourDigitsNumber() {
28 $this->assertEquals( '1234', $this->lang
->commafy( '1234' ) );
30 /** @dataProvider providePluralFourForms */
31 function testPluralFourForms( $result, $value ) {
32 $forms = array( 'one', 'few', 'many', 'other' );
33 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
36 function providePluralFourForms() {
51 /** @dataProvider providePluralTwoForms */
52 function testPluralTwoForms( $result, $value ) {
53 $forms = array( 'one', 'several' );
54 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
56 function providePluralTwoForms() {
59 array( 'several', 11 ),
60 array( 'several', 91 ),
61 array( 'several', 121 ),