Lines 35-49
is( Koha::Number::Price->new(1234567890)->format( $format ),
Link Here
|
35 |
|
35 |
|
36 |
is( Koha::Number::Price->new(100000000000000)->format, '100000000000000', 'Numbers too big are not formatted'); |
36 |
is( Koha::Number::Price->new(100000000000000)->format, '100000000000000', 'Numbers too big are not formatted'); |
37 |
|
37 |
|
38 |
# FIXME This should be display symbol, but it was the case before the creation of this module |
|
|
39 |
is( Koha::Number::Price->new->format( { %$format, with_symbol => 1 } ), |
38 |
is( Koha::Number::Price->new->format( { %$format, with_symbol => 1 } ), |
40 |
'0.00', 'US: format 0 with symbol' ); |
39 |
'$0.00', 'US: format 0 with symbol' ); |
41 |
is( Koha::Number::Price->new(3)->format( { %$format, with_symbol => 1 } ), |
40 |
is( Koha::Number::Price->new(3)->format( { %$format, with_symbol => 1 } ), |
42 |
'3.00', 'US: format 3 with symbol' ); |
41 |
'$3.00', 'US: format 3 with symbol' ); |
43 |
is( |
42 |
is( |
44 |
Koha::Number::Price->new(1234567890) |
43 |
Koha::Number::Price->new(1234567890) |
45 |
->format( { %$format, with_symbol => 1 }, 'US: format 1234567890 with symbol' ), |
44 |
->format( { %$format, with_symbol => 1 }, 'US: format 1234567890 with symbol' ), |
46 |
'1,234,567,890.00' |
45 |
'$1,234,567,890.00' |
47 |
); |
46 |
); |
48 |
|
47 |
|
49 |
is( Koha::Number::Price->new->unformat, '0', 'US: unformat 0' ); |
48 |
is( Koha::Number::Price->new->unformat, '0', 'US: unformat 0' ); |
50 |
- |
|
|