From 78e412daa8dd56884a9a161ace9e23950f54e753 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Fri, 8 Jun 2018 12:50:31 +0100
Subject: [PATCH] Bug 20906: Prevent test failures due to precision changes

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 t/db_dependent/Accounts.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t
index ab1fc5fe01..f447d4658a 100644
--- a/t/db_dependent/Accounts.t
+++ b/t/db_dependent/Accounts.t
@@ -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" );
     }
 };
 
-- 
2.17.1