Bugzilla – Attachment 190755 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 2025-12-29 11:13:38 UTC
(
hide
)
Description:
Bug 38360: Add unit tests
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-12-29 11:13:38 UTC
Size:
1.37 KB
patch
obsolete
>From 8341566ad8c7dab01a961fa3de63e6f8c5247422 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 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
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
| 190755 |
190756