3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
8 /** Tests for MediaWiki languages/classes/LanguageGv.php */
9 class LanguageGvTest
extends MediaWikiTestCase
{
13 $this->lang
= Language
::factory( 'gv' );
19 /** @dataProvider providerPlural */
20 function testPlural( $result, $value ) {
21 // This is not compatible with CLDR plural rules http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#gv
22 $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4' );
23 $this->assertEquals( $result, $this->lang
->convertPlural( $value, $forms ) );
25 function providerPlural() {
31 array( 'Form 1', 20 ),
32 array( 'Form 2', 21 ),
33 array( 'Form 3', 22 ),
34 array( 'Form 4', 23 ),
35 array( 'Form 4', 50 ),