Bugzilla – Attachment 69861 Details for
Bug 19759
TestBuilder generates too many decimals for float
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19759: Fix failing test in Chargelostitem.t
Bug-19759-Fix-failing-test-in-Chargelostitemt.patch (text/plain), 1.58 KB, created by
Jonathan Druart
on 2017-12-18 17:48:30 UTC
(
hide
)
Description:
Bug 19759: Fix failing test in Chargelostitem.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-12-18 17:48:30 UTC
Size:
1.58 KB
patch
obsolete
>From 769c9656476841cb4b5ca16afa680edc4f30cca0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Dec 2017 14:47:37 -0300 >Subject: [PATCH] Bug 19759: Fix failing test in Chargelostitem.t > > t/db_dependent/Circulation/Chargelostitem.t .. 1/6 > # Failed test 'The accountline amount should be precessfee value ' > # at t/db_dependent/Circulation/Chargelostitem.t line 71. > # got: '4.5968041848873e+20' > # expected: '459680418488730451968.00' > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Circulation/Chargelostitem.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Circulation/Chargelostitem.t b/t/db_dependent/Circulation/Chargelostitem.t >index bb2f23002f..9d070b69c6 100644 >--- a/t/db_dependent/Circulation/Chargelostitem.t >+++ b/t/db_dependent/Circulation/Chargelostitem.t >@@ -68,7 +68,7 @@ C4::Accounts::chargelostitem( $borrowernumber, $issue->{itemnumber}, '1.00'); > > my $accountline = Koha::Account::Lines->search( { borrowernumber => $borrowernumber, accounttype => 'PF' } )->next(); > >-is( int($accountline->amount), $itemtype->{processfee}, "The accountline amount should be precessfee value " ); >+is( int($accountline->amount), int($itemtype->{processfee}), "The accountline amount should be precessfee value " ); > is( $accountline->itemnumber, $itemnumber1, "The accountline itemnumber should the linked with barcode '0101'" ); > is( $accountline->note, C4::Context->preference("ProcessingFeeNote"), "The accountline description should be 'test'" ); > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19759
:
69562
|
69566
|
69666
|
69821
| 69861