Artifact 48f882c475a3db8eec243c99b7d169821af8f600:
- File tests/unit_tests/02_accounting/money.php — part of check-in [447fa418e5] at 2020-11-09 22:40:31 on branch dev — Fix issue with single cents (user: bohwaz, size: 404) [annotate] [blame] [check-ins using]
<?php namespace Garradin; use KD2\Test; require INIT; Test::strictlyEquals(500, Utils::moneyToInteger('5')); Test::strictlyEquals(442, Utils::moneyToInteger('4,42')); Test::strictlyEquals(442, Utils::moneyToInteger('4.42')); Test::strictlyEquals(4, Utils::moneyToInteger('0,04')); Test::strictlyEquals(30, Utils::moneyToInteger('0,3')); Test::strictlyEquals(202034, Utils::moneyToInteger('2020,34'));