Bugzilla – Attachment 173990 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: Cosmetics
Bug-38360-Cosmetics.patch (text/plain), 2.38 KB, created by
Baptiste Wojtkowski (bwoj)
on 2024-11-05 16:31:46 UTC
(
hide
)
Description:
Bug 38360: Cosmetics
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2024-11-05 16:31:46 UTC
Size:
2.38 KB
patch
obsolete
>From f0b38ce57190e0eef0cf5dc0392cbd733a5be993 Mon Sep 17 00:00:00 2001 >From: Baptiste <baptiste.wojtkowski@biblibre.com> >Date: Tue, 5 Nov 2024 17:22:41 +0100 >Subject: [PATCH] Bug 38360: Cosmetics > >--- > t/db_dependent/MungeMarcPrice.t | 25 +++++++++++++------------ > 1 file changed, 13 insertions(+), 12 deletions(-) > >diff --git a/t/db_dependent/MungeMarcPrice.t b/t/db_dependent/MungeMarcPrice.t >index 1a514232af2..db551666468 100755 >--- a/t/db_dependent/MungeMarcPrice.t >+++ b/t/db_dependent/MungeMarcPrice.t >@@ -15,18 +15,19 @@ $schema->storage->txn_begin; > my $dbh = C4::Context->dbh; > > # set some test price strings and expected output >-my @prices2test=( { string => '25,5 £, $34,55, $LD35', expected => '34.55' }, >- { string => '32 EUR, 42.50$ USD, 54 CAD', expected=>'42.50' }, >- { string => '38.80 Ksh, Â¥300, 51,50 USD', expected => '51.50' }, >- { string => '44 $, 33 â¬, 64 Br, £30', expected => '44' }, >- { string => '9 EUR,$34,55 USD,$7.35 CAN', expected => '34.55' }, >- { string => '$55.32', expected => '55.32' }, >- { string => '9.99 USD (paperback)', expected => '9.99' }, >- { string => '$9.99 USD (paperback)', expected => '9.99' }, >- { 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' }, >- ); >+my @prices2test = ( >+ { string => '25,5 £, $34,55, $LD35', expected => '34.55' }, >+ { string => '32 EUR, 42.50$ USD, 54 CAD', expected => '42.50' }, >+ { string => '38.80 Ksh, Â¥300, 51,50 USD', expected => '51.50' }, >+ { string => '44 $, 33 â¬, 64 Br, £30', expected => '44' }, >+ { string => '9 EUR,$34,55 USD,$7.35 CAN', expected => '34.55' }, >+ { string => '$55.32', expected => '55.32' }, >+ { string => '9.99 USD (paperback)', expected => '9.99' }, >+ { string => '$9.99 USD (paperback)', expected => '9.99' }, >+ { 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' }, >+); > > 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