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 */
13 function testFormatNum( $result, $value ) {
14 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
17 public static function providerFormatNum() {
19 array( '12,34,567', '1234567' ),
20 array( '12,345', '12345' ),
22 array( '123', '123' ),
23 array( '1,234', '1234' ),
24 array( '12,345.56', '12345.56' ),
25 array( '12,34,56,79,81,23,45,678', '12345679812345678' ),
26 array( '.12345', '.12345' ),
27 array( '-12,00,000', '-1200000' ),
28 array( '-98', '-98' ),
30 array( '-1,23,45,678', -12345678 ),