MediaWiki
REL1_19
|
00001 <?php 00009 class LanguageNlTest extends MediaWikiTestCase { 00010 private $lang; 00011 00012 function setUp() { 00013 $this->lang = Language::factory( 'Nl' ); 00014 } 00015 function tearDown() { 00016 unset( $this->lang ); 00017 } 00018 00019 function testFormatNum() { 00020 $this->assertEquals( '1.234.567', $this->lang->formatNum( '1234567' ) ); 00021 $this->assertEquals( '12.345', $this->lang->formatNum( '12345' ) ); 00022 $this->assertEquals( '1', $this->lang->formatNum( '1' ) ); 00023 $this->assertEquals( '123', $this->lang->formatNum( '123' ) ); 00024 $this->assertEquals( '1.234', $this->lang->formatNum( '1234' ) ); 00025 $this->assertEquals( '12.345,56', $this->lang->formatNum( '12345.56' ) ); 00026 $this->assertEquals( ',1234556', $this->lang->formatNum( '.1234556' ) ); 00027 } 00028 }