Merge "Bug 35623 - createAndPromote.php: Change to allow promotion only"
[lhc/web/wiklou.git] / tests / phpunit / languages / LanguageMlTest.php
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
5 * @file
6 */
7
8 /** Tests for MediaWiki languages/LanguageMl.php */
9 class LanguageMlTest extends LanguageClassesTestCase {
10
11 /** see bug 29495 */
12 /** @dataProvider providerFormatNum */
13 function testFormatNum( $result, $value ) {
14 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
15 }
16
17 function providerFormatNum() {
18 return array(
19 array( '12,34,567', '1234567' ),
20 array( '12,345', '12345' ),
21 array( '1', '1' ),
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' ),
29 array( '-98', -98 ),
30 array( '-1,23,45,678', -12345678 ),
31 array( '', '' ),
32 array( '', null ),
33 );
34 }
35 }