Lines 17-23
Link Here
|
17 |
|
17 |
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
|
19 |
|
20 |
use Test::More tests => 26; |
20 |
use Test::More tests => 28; |
21 |
|
21 |
|
22 |
use C4::Context; |
22 |
use C4::Context; |
23 |
use t::lib::Mocks; |
23 |
use t::lib::Mocks; |
Lines 29-47
t::lib::Mocks::mock_userenv({ branchcode => 'IMS' });
Link Here
|
29 |
our %inputs = ( |
29 |
our %inputs = ( |
30 |
cuecat => ["26002315", '.C3nZC3nZC3nYD3b6ENnZCNnY.fHmc.C3D1Dxr2C3nZE3n7.', ".C3nZC3nZC3nYD3b6ENnZCNnY.fHmc.C3D1Dxr2C3nZE3n7.\r\n", |
30 |
cuecat => ["26002315", '.C3nZC3nZC3nYD3b6ENnZCNnY.fHmc.C3D1Dxr2C3nZE3n7.', ".C3nZC3nZC3nYD3b6ENnZCNnY.fHmc.C3D1Dxr2C3nZE3n7.\r\n", |
31 |
'q.C3nZC3nZC3nWDNzYDxf2CNnY.fHmc.C3DWC3nZCNjXD3nW.', '.C3nZC3nZC3nWCxjWE3D1C3nX.cGf2.ENr7C3v7D3T3ENj3C3zYDNnZ.' ], |
31 |
'q.C3nZC3nZC3nWDNzYDxf2CNnY.fHmc.C3DWC3nZCNjXD3nW.', '.C3nZC3nZC3nWCxjWE3D1C3nX.cGf2.ENr7C3v7D3T3ENj3C3zYDNnZ.' ], |
32 |
whitespace => [" 26002315", "26002315 ", "\n\t26002315\n"], |
32 |
whitespace => [" 26002315", "26002315 ", "\n\t26002315\n", "whitespace removed"], |
33 |
'T-prefix' => [qw(T0031472 T32)], |
33 |
'T-prefix' => [qw(T0031472 T32)], |
34 |
'libsuite8' => ['b000126', 'b12', 'B0126', 'IMS-B-126', 'ims-b-126','CD0000024','00123','11998'], |
34 |
'libsuite8' => ['b000126', 'b12', 'B0126', 'IMS-B-126', 'ims-b-126','CD0000024','00123','11998'], |
35 |
EAN13 => [qw(892685001928 695152)], |
35 |
EAN13 => [qw(892685001928 695152)], |
36 |
other => [qw(26002315 T0031472 T32 Alphanum123), "Alpha Num 345"], |
36 |
other => [qw(26002315 T0031472 T32 Alphanum123), "Alpha Num 345", " side spaces removed \n"], |
37 |
); |
37 |
); |
38 |
our %outputs = ( |
38 |
our %outputs = ( |
39 |
cuecat => ["26002315", "046675000808", "046675000808", "043000112403", "978068484914051500"], |
39 |
cuecat => ["26002315", "046675000808", "046675000808", "043000112403", "978068484914051500"], |
40 |
whitespace => [qw(26002315 26002315 26002315)], |
40 |
whitespace => [qw(26002315 26002315 26002315 whitespaceremoved)], |
41 |
'T-prefix' => [qw(T0031472 T0000002 )], |
41 |
'T-prefix' => [qw(T0031472 T0000002 )], |
42 |
'libsuite8' => ['IMS-b-126', 'IMS-b-12', 'IMS-B-126', 'IMS-B-126', 'ims-b-126','IMS-CD-24','IMS-b-123','IMS-b-11998'], |
42 |
'libsuite8' => ['IMS-b-126', 'IMS-b-12', 'IMS-B-126', 'IMS-B-126', 'ims-b-126','IMS-CD-24','IMS-b-123','IMS-b-11998'], |
43 |
EAN13 => [qw(0892685001928 0000000695152)], |
43 |
EAN13 => [qw(0892685001928 0000000695152)], |
44 |
other => [qw(26002315 T0031472 T32 Alphanum123), "Alpha Num 345"], |
44 |
other => [qw(26002315 T0031472 T32 Alphanum123), "Alpha Num 345", "side spaces removed"], |
45 |
); |
45 |
); |
46 |
|
46 |
|
47 |
my @filters = sort keys %inputs; |
47 |
my @filters = sort keys %inputs; |
48 |
- |
|
|