After pulling the code from @hamuz I realised the test was disabled. So I enabled it again. I had to change two test results. One was a 0 value not being negative, the other was due to the 12 decimal cut off (Firefly III configuration).

This commit is contained in:
James Cole
2018-09-09 17:11:07 +02:00
parent 06f3463dbc
commit d4b82a33c5
2 changed files with 7 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ class AmountCreditTest extends TestCase
foreach ($values as $value => $expected) {
$converter = new AmountCredit;
$result = $converter->convert($value);
//$this->assertEquals($expected, $result, sprintf('The original value was %s, expected was %s', $value, $expected));
$this->assertEquals($expected, $result, sprintf('The original value was %s, expected was %s', $value, $expected));
}
}