From 617b6bb39d1ac93808ed4623ed0df847e6c62a79 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 db551666468..5193bb24fc6 100755 --- a/t/db_dependent/MungeMarcPrice.t +++ b/t/db_dependent/MungeMarcPrice.t @@ -27,6 +27,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 => 2 * scalar @prices2test; -- 2.30.2