MediaWiki REL1_30
LanguageMlTest.php
Go to the documentation of this file.
1<?php
10
16 public function testFormatNum( $result, $value ) {
17 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
18 }
19
20 public static function providerFormatNum() {
21 return [
22 [ '12,34,567', '1234567' ],
23 [ '12,345', '12345' ],
24 [ '1', '1' ],
25 [ '123', '123' ],
26 [ '1,234', '1234' ],
27 [ '12,345.56', '12345.56' ],
28 [ '12,34,56,79,81,23,45,678', '12345679812345678' ],
29 [ '.12345', '.12345' ],
30 [ '-12,00,000', '-1200000' ],
31 [ '-98', '-98' ],
32 [ '-98', -98 ],
33 [ '-1,23,45,678', -12345678 ],
34 [ '', '' ],
35 [ '', null ],
36 ];
37 }
38}
Helping class to run tests using a clean language instance.
Tests for MediaWiki languages/LanguageMl.php.
static providerFormatNum()
testFormatNum( $result, $value)
providerFormatNum T31495 Language::formatNum