adding basic test

This commit is contained in:
euromark 2012-09-20 01:56:52 +02:00
parent 213d4caa85
commit 0be1943bcd

View file

@ -90,6 +90,10 @@ class CakeNumberTest extends CakeTestCase {
public function testFormatDelta() {
$value = '100100100';
$result = $this->Number->formatDelta($value);
$expected = '+100,100,100.00';
$this->assertEquals($expected, $result);
$result = $this->Number->formatDelta($value, array('before' => '', 'after' => ''));
$expected = '+100,100,100.00';
$this->assertEquals($expected, $result);