Bugzilla – Attachment 173991 Details for
Bug 38360
Price extraction from MungeMarcPrice should be improved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38360: Add unit tests
Bug-38360-Add-unit-tests.patch (text/plain), 1.37 KB, created by
Baptiste Wojtkowski (bwoj)
on 2024-11-05 16:31:48 UTC
(
hide
)
Description:
Bug 38360: Add unit tests
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2024-11-05 16:31:48 UTC
Size:
1.37 KB
patch
obsolete
>From 617b6bb39d1ac93808ed4623ed0df847e6c62a79 Mon Sep 17 00:00:00 2001 >From: Baptiste <baptiste.wojtkowski@biblibre.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38360
:
173990
| 173991 |
173992