zeroclickinfo-goodies/t/ScreenResolution.t

39 lines
856 B
Perl
Raw Normal View History

#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "screen_resolution";
zci is_cached => 1;
2015-07-08 17:57:28 -07:00
my @answer = test_zci(
undef,
structured_answer => {
data => {
title => "Your screen resolution is [Loading...]"
},
templates => {
group => 'icon',
item => 0,
options => {
moreAt => 0
}
}
}
2015-07-08 17:57:28 -07:00
);
ddg_goodie_test(
[qw( DDG::Goodie::ScreenResolution )],
'screen resolution' => @answer,
'what is my display resolution' => @answer,
2015-06-21 11:45:36 -07:00
'whats my screen resolution' => @answer,
'what is my screen resolution' => @answer,
'what is the resolution of my screen?' => @answer,
'my screen resolution' => @answer,
'blah blah screen resolution' => undef,
);
done_testing;