3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
8 /** Tests for MediaWiki languages/LanguageMl.php */
9 class LanguageMlTest
extends LanguageClassesTestCase
{
12 * @dataProvider providerFormatNum
14 * @covers Language::formatNum
16 public function testFormatNum( $result, $value ) {
17 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
20 public static function providerFormatNum() {
22 [ '12,34,567', '1234567' ],
23 [ '12,345', '12345' ],
27 [ '12,345.56', '12345.56' ],
28 [ '12,34,56,79,81,23,45,678', '12345679812345678' ],
29 [ '.12345', '.12345' ],
30 [ '-12,00,000', '-1200000' ],
33 [ '-1,23,45,678', -12345678 ],