Bug 20906: Prevent test failures due to precision changes

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit b134293958)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2018-06-08 12:50:31 +01:00 committed by Fridolin Somers
parent d405ffe121
commit 8cd11380a8
1 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ subtest "More Koha::Account::pay tests" => sub {
is( $stat->type, 'payment', "Correct statistic type" );
is( $stat->branch, $branch, "Correct branch logged to statistics" );
is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" );
is( $stat->value, "$amount" . "\.0000", "Correct amount logged to statistics" );
is( $stat->value+0, $amount, "Correct amount logged to statistics" );
}
};
@ -449,7 +449,7 @@ subtest "Even more Koha::Account::pay tests" => sub {
is( $stat->type, 'payment', "Correct statistic type" );
is( $stat->branch, $branch, "Correct branch logged to statistics" );
is( $stat->borrowernumber, $borrowernumber, "Correct borrowernumber logged to statistics" );
is( $stat->value, "$partialamount" . "\.0000", "Correct amount logged to statistics" );
is( $stat->value+0, $partialamount, "Correct amount logged to statistics" );
}
};