Bugzilla – Attachment 171598 Details for
Bug 36049
Rounding prices sometimes leads to incorrect results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36049: Add unit test
Bug-36049-Add-unit-test.patch (text/plain), 1.06 KB, created by
Victor Grousset/tuxayo
on 2024-09-17 01:03:38 UTC
(
hide
)
Description:
Bug 36049: Add unit test
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-09-17 01:03:38 UTC
Size:
1.06 KB
patch
obsolete
>From 6053ec400fa56e903c2bf173178d64ab0444264c Mon Sep 17 00:00:00 2001 >From: Raphael Straub <raphael.straub@kit.edu> >Date: Thu, 8 Feb 2024 14:17:56 +0000 >Subject: [PATCH] Bug 36049: Add unit test > >Sponsored-by: Karlsruhe Institute of Technology (KIT) >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > t/Number/Price.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/Number/Price.t b/t/Number/Price.t >index ce607a83a1..9017fe793e 100755 >--- a/t/Number/Price.t >+++ b/t/Number/Price.t >@@ -1,6 +1,6 @@ > use Modern::Perl; > >-use Test::More tests => 35; >+use Test::More tests => 36; > > use Test::MockModule; > use t::lib::Mocks; >@@ -136,6 +136,9 @@ is( Koha::Number::Price->new(3)->unformat, '3', 'CHF: unformat 3' ); > is( Koha::Number::Price->new(1234567890)->unformat, > '1234567890', 'CHF: unformat 1234567890' ); > >+# Rounding >+is( Koha::Number::Price->new(17.955)->round, '17.96', 'Round 17.955' ); >+ > subtest 'Changes for format' => sub { # See also bug 18736 > plan tests => 3; > >-- >2.46.1
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 36049
:
161918
|
161951
|
162699
|
162700
|
162701
| 171598 |
171599