zeroclickinfo-goodies/t/FedEx.t

37 lines
1.5 KiB
Perl
Raw Normal View History

2013-03-08 13:10:49 -08:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'fedex';
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::FedEx )],
'fedex 9241990100130206401644' => test_zci(
2015-07-08 12:12:43 -07:00
"9241990100130206401644",
heading => 'FedEx Shipment Tracking',
html => qq(Track this shipment at <a href="https://www.fedex.com/apps/fedextrack/?tracknumbers=9241990100130206401644&action=track">FedEx</a>.)
2013-03-08 13:10:49 -08:00
),
'federal express 9241990100130206401644' => test_zci(
2015-07-08 12:12:43 -07:00
"9241990100130206401644",
heading => 'FedEx Shipment Tracking',
html => qq(Track this shipment at <a href="https://www.fedex.com/apps/fedextrack/?tracknumbers=9241990100130206401644&action=track">FedEx</a>.)
2013-03-08 13:10:49 -08:00
),
'178440515632684' => test_zci(
"178440515632684",
heading => 'FedEx Shipment Tracking',
2015-07-08 12:12:43 -07:00
html => qq(Track this shipment at <a href="https://www.fedex.com/apps/fedextrack/?tracknumbers=178440515632684&action=track">FedEx</a>.)
),
2014-02-18 00:23:04 -08:00
'178440515682684' => undef, # Transcription error turns a 3 into an 8. Fails checksum; not a tracking number.
2014-05-11 07:08:20 -07:00
'9612804882227378545377' => test_zci(
2015-07-08 12:12:43 -07:00
"9612804882227378545377",
heading => 'FedEx Shipment Tracking',
html => qq(Track this shipment at <a href="https://www.fedex.com/apps/fedextrack/?tracknumbers=9612804882227378545377&action=track">FedEx</a>.)
2014-05-11 07:08:20 -07:00
)
2013-03-08 13:10:49 -08:00
);
done_testing;