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> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit0ca0cd766a) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit0e62b0a697) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
269ce58aa1
commit
e9eb0e9f32
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue