3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
8 /** Tests for MediaWiki languages/LanguageNl.php */
9 class LanguageNlTest
extends MediaWikiTestCase
{
13 $this->lang
= Language
::factory( 'Nl' );
19 function testFormatNum() {
20 $this->assertEquals( '1.234.567', $this->lang
->formatNum( '1234567' ) );
21 $this->assertEquals( '12.345', $this->lang
->formatNum( '12345' ) );
22 $this->assertEquals( '1', $this->lang
->formatNum( '1' ) );
23 $this->assertEquals( '123', $this->lang
->formatNum( '123' ) );
24 $this->assertEquals( '1.234', $this->lang
->formatNum( '1234' ) );
25 $this->assertEquals( '12.345,56', $this->lang
->formatNum( '12345.56' ) );
26 $this->assertEquals( ',1234556', $this->lang
->formatNum( '.1234556' ) );