zeroclickinfo-goodies/t/WhereAmI.t

27 lines
619 B
Perl
Raw Normal View History

2014-01-30 08:26:29 -08:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'whereami';
2014-10-06 02:34:48 -07:00
zci is_cached => 0;
my @test_loc = (
'Lat: 40.1246, Lon: -75.5385 (near Phoenixville, PA)',
structured_answer => {
input => [],
operation => 'Apparent current location',
2014-10-06 02:34:48 -07:00
result => 'Lat: 40.1246, Lon: -75.5385 (near Phoenixville, PA)'
});
2014-01-30 08:26:29 -08:00
ddg_goodie_test(
2014-10-06 02:34:48 -07:00
[qw(DDG::Goodie::WhereAmI)],
'where am I?' => test_zci(@test_loc),
'my location' => test_zci(@test_loc),
'my location is nowhere!' => undef,
2014-01-30 08:26:29 -08:00
);
done_testing;