From 8341566ad8c7dab01a961fa3de63e6f8c5247422 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Tue, 5 Nov 2024 17:25:17 +0100 Subject: [PATCH] Bug 38360: Add unit tests Add unit tests to prove case not taken in account py MungeMarcPrice --- t/db_dependent/MungeMarcPrice.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/db_dependent/MungeMarcPrice.t b/t/db_dependent/MungeMarcPrice.t index 1f322ebf0d8..bfe7389364a 100755 --- a/t/db_dependent/MungeMarcPrice.t +++ b/t/db_dependent/MungeMarcPrice.t @@ -28,6 +28,14 @@ my @prices2test = ( { string => '18.95 (U.S.)', expected => '18.95' }, { string => '$5.99 ($7.75 CAN)', expected => '5.99' }, { string => '5.99 (7.75 CAN)', expected => '5.99' }, + { string => '59', expected => '59' }, + { string => '5.9', expected => '5.9' }, + { string => '5.90', expected => '5.90' }, + { string => '5,90', expected => '5.90' }, + { string => '555,555.9', expected => '555555.9' }, + { string => '555.555,9', expected => '555555.9' }, + { string => ',,,,,99', expected => '' }, + { string => ' 5.90', expected => '5.90' }, ); plan tests => 1 + 2 * scalar @prices2test; -- 2.43.0