MediaWiki  REL1_22
LanguageMlTest.php
Go to the documentation of this file.
00001 <?php
00009 class LanguageMlTest extends LanguageClassesTestCase {
00010 
00016     public function testFormatNum( $result, $value ) {
00017         $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
00018     }
00019 
00020     public static function providerFormatNum() {
00021         return array(
00022             array( '12,34,567', '1234567' ),
00023             array( '12,345', '12345' ),
00024             array( '1', '1' ),
00025             array( '123', '123' ),
00026             array( '1,234', '1234' ),
00027             array( '12,345.56', '12345.56' ),
00028             array( '12,34,56,79,81,23,45,678', '12345679812345678' ),
00029             array( '.12345', '.12345' ),
00030             array( '-12,00,000', '-1200000' ),
00031             array( '-98', '-98' ),
00032             array( '-98', -98 ),
00033             array( '-1,23,45,678', -12345678 ),
00034             array( '', '' ),
00035             array( '', null ),
00036         );
00037     }
00038 }