From 4a14f3ee8c38097df88d15fe12c42ea600a0035f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 15 Apr 2020 12:48:44 +0200 Subject: [PATCH] Bug 24380: (QA follow-up) Do not use compare float with precision forbidden pattern: Do not use compare float with precision (bug 24408). Signed-off-by: Jonathan Druart --- t/db_dependent/Circulation/Returns.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index eadaa9f6af..864f47d79b 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -437,7 +437,7 @@ subtest 'Backdated returns should reduce fine if needed' => sub { my ( $doreturn, $messages, $issue ) = AddReturn($item->barcode, undef, undef, dt_from_string('1999-01-01') ); $fine->discard_changes; - is( $fine->amountoutstanding, '0.000000', "Fine was reduced correctly with a backdated return" ); + is( $fine->amountoutstanding+0, 0, "Fine was reduced correctly with a backdated return" ); }; $schema->storage->txn_rollback; -- 2.20.1