3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
8 /** Tests for MediaWiki languages/classes/LanguageGv.php */
9 class LanguageGvTest
extends LanguageClassesTestCase
{
11 /** @dataProvider providerPlural */
12 function testPlural( $result, $value ) {
13 // This is not compatible with CLDR plural rules http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#gv
14 $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4' );
15 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
17 function providerPlural() {
23 array( 'Form 1', 20 ),
24 array( 'Form 2', 21 ),
25 array( 'Form 3', 22 ),
26 array( 'Form 4', 23 ),
27 array( 'Form 4', 50 ),