Lines 27-32
my @prices2test = (
Link Here
|
27 |
{ string => '18.95 (U.S.)', expected => '18.95' }, |
27 |
{ string => '18.95 (U.S.)', expected => '18.95' }, |
28 |
{ string => '$5.99 ($7.75 CAN)', expected => '5.99' }, |
28 |
{ string => '$5.99 ($7.75 CAN)', expected => '5.99' }, |
29 |
{ string => '5.99 (7.75 CAN)', expected => '5.99' }, |
29 |
{ string => '5.99 (7.75 CAN)', expected => '5.99' }, |
|
|
30 |
{ string => '59', expected => '59' }, |
31 |
{ string => '5.9', expected => '5.9' }, |
32 |
{ string => '5.90', expected => '5.90' }, |
33 |
{ string => '5,90', expected => '5.90' }, |
34 |
{ string => '555,555.9', expected => '555555.9' }, |
35 |
{ string => '555.555,9', expected => '555555.9' }, |
36 |
{ string => ',,,,,99', expected => '' }, |
37 |
{ string => ' 5.90', expected => '5.90' }, |
30 |
); |
38 |
); |
31 |
|
39 |
|
32 |
plan tests => 2 * scalar @prices2test; |
40 |
plan tests => 2 * scalar @prices2test; |
33 |
- |
|
|