More complete, more straightforward JobQueueMemoryTest
[mediawiki.git] / tests / phpunit / languages / classes / LanguageMlTest.php
blob4fa45ce3873de4a202279fbfee131f4fade9a1ea
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/LanguageMl.php */
9 class LanguageMlTest extends LanguageClassesTestCase {
11 /**
12 * @dataProvider providerFormatNum
13 * @see bug 29495
14 * @covers Language::formatNum
16 public function testFormatNum( $result, $value ) {
17 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
20 public static function providerFormatNum() {
21 return array(
22 array( '12,34,567', '1234567' ),
23 array( '12,345', '12345' ),
24 array( '1', '1' ),
25 array( '123', '123' ),
26 array( '1,234', '1234' ),
27 array( '12,345.56', '12345.56' ),
28 array( '12,34,56,79,81,23,45,678', '12345679812345678' ),
29 array( '.12345', '.12345' ),
30 array( '-12,00,000', '-1200000' ),
31 array( '-98', '-98' ),
32 array( '-98', -98 ),
33 array( '-1,23,45,678', -12345678 ),
34 array( '', '' ),
35 array( '', null ),