5b246d8ed607a934f51bf0d0bd13f503922cd05d
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'
25 /** see bug 23156 & r64981 */
26 function testCommafy() {
27 $this->assertEquals( '1,234,567', $this->getLang()->commafy( '1234567' ) );
28 $this->assertEquals( '12,345', $this->getLang()->commafy( '12345' ) );
31 /** see bug 23156 & r64981 */
32 function testDoesNotCommafyFourDigitsNumber() {
33 $this->assertEquals( '1234', $this->getLang()->commafy( '1234' ) );
36 /** @dataProvider providePluralFourForms */
37 function testPluralFourForms( $result, $value ) {
38 $forms = array( 'one', 'few', 'many', 'other' );
39 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
42 function providePluralFourForms() {
58 /** @dataProvider providePluralTwoForms */
59 function testPluralTwoForms( $result, $value ) {
60 $forms = array( 'one', 'several' );
61 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
64 function providePluralTwoForms() {
67 array( 'several', 11 ),
68 array( 'several', 91 ),
69 array( 'several', 121 ),