3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
8 /** Tests for MediaWiki languages/classes/LanguageGv.php */
9 class LanguageGvTest
extends LanguageClassesTestCase
{
10 /** @dataProvider providePlural */
11 function testPlural( $result, $value ) {
12 // This is not compatible with CLDR plural rules http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#gv
13 // What does this mean? Is there a hard-coded override for gv somewhere? -Ryan Kaldari 2013-01-28
14 $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4' );
15 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
18 /** @dataProvider providePlural */
19 function testGetPluralRuleType( $result, $value ) {
20 $this->markTestSkipped( "This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules." );
21 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
24 public static function providePlural() {
30 array( 'Form 1', 20 ),
31 array( 'Form 2', 21 ),
32 array( 'Form 3', 22 ),
33 array( 'Form 4', 23 ),
34 array( 'Form 4', 50 ),