/t/IsItUp.t
https://github.com/aembleton/zeroclickinfo-spice · Perl · 30 lines · 23 code · 4 blank · 3 comment · 0 complexity · 7894367ab43f014aea82d701f5c23cbf MD5 · raw file
- #!/usr/bin/env perl
- use strict;
- use warnings;
- use Test::More;
- use DDG::Test::Spice;
- use utf8;
- ddg_spice_test(
- [qw( DDG::Spice::IsItUp )],
- 'is duckduckgo.com up?' => test_spice(
- '/js/spice/is_it_up/duckduckgo.com',
- call_type => 'include',
- caller => 'DDG::Spice::IsItUp',
- is_cached => 0
- ),
- 'is http://duckduckgo.com up?' => test_spice(
- '/js/spice/is_it_up/duckduckgo.com',
- call_type => 'include',
- caller => 'DDG::Spice::IsItUp',
- is_cached => 0
- ),
- # unfortunately, the isitup.com api does not
- # currently support unicode or ssl
- 'is føtex.dk up?' => undef,
- 'is https://føtex.dk up?' => undef,
- );
- done_testing;