3 class LanguageBe_taraskTest
extends LanguageClassesTestCase
{
6 * Make sure the language code we are given is indeed
7 * be-tarask. This is to ensure LanguageClassesTestCase
8 * does not give us the wrong language.
10 function testBeTaraskTestsUsesBeTaraskCode() {
11 $this->assertEquals( 'be-tarask',
12 $this->getLang()->getCode()
16 /** see bug 23156 & r64981 */
17 function testSearchRightSingleQuotationMarkAsApostroph() {
20 $this->getLang()->normalizeForSearch( '’' ),
21 'bug 23156: U+2019 conversion to U+0027'
24 /** see bug 23156 & r64981 */
25 function testCommafy() {
26 $this->assertEquals( '1,234,567', $this->getLang()->commafy( '1234567' ) );
27 $this->assertEquals( '12,345', $this->getLang()->commafy( '12345' ) );
29 /** see bug 23156 & r64981 */
30 function testDoesNotCommafyFourDigitsNumber() {
31 $this->assertEquals( '1234', $this->getLang()->commafy( '1234' ) );
33 /** @dataProvider providePluralFourForms */
34 function testPluralFourForms( $result, $value ) {
35 $forms = array( 'one', 'few', 'many', 'other' );
36 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
39 function providePluralFourForms() {
54 /** @dataProvider providePluralTwoForms */
55 function testPluralTwoForms( $result, $value ) {
56 $forms = array( 'one', 'several' );
57 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
59 function providePluralTwoForms() {
62 array( 'several', 11 ),
63 array( 'several', 91 ),
64 array( 'several', 121 ),