From 6c2c8d911680a311baf28634fba1fb5fa7059dee Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 10 Oct 2014 22:47:32 +0200 Subject: [PATCH] Bug 12844: Force the symbol place Looking with Katrin at the default configuration of Number::Format, she has the p_cs_precedes value set to 0 (put the symbol at the end). The tests should mock this value in order to pass on all configuration. This default value for this variable certainly depends on the locales. --- t/Number/Price.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/Number/Price.t b/t/Number/Price.t index edb6d53..2735844 100644 --- a/t/Number/Price.t +++ b/t/Number/Price.t @@ -17,6 +17,7 @@ $currency = { symbol => '$', rate => 1, active => 1, + p_cs_precedes => 1, # Force to place the symbol at the beginning }; is( Koha::Number::Price->new->format, '0.00', 'US: format 0' ); @@ -46,6 +47,7 @@ $currency = { symbol => '€', rate => 1, active => 1, + p_cs_precedes => 1, }; # Actually,the price formating for France is 3,00€ -- 2.1.0