GimpCheatSheet: Add tests.

master
elebow 2014-07-12 15:58:43 -04:00
parent b436153a3e
commit 117b935ba5
1 changed files with 30 additions and 0 deletions

30
t/GimpCheatSheet.t Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "gimp_cheat";
# This goodie always returns the same answer whenever its triggered
my $test_zci = test_zci(
qr/^Help.*Tools.*File.*Edit.*Zoom tool.*/s,
heading => "GIMP Shortcut Cheat Sheet",
html => qr#<div(.*<table.*<tr.*<td.*</table.*)+</div>$#s,
);
ddg_goodie_test(
[ 'DDG::Goodie::GimpCheatSheet' ],
"gimp cheat sheet" => $test_zci,
"gimp cheatsheet" => $test_zci,
"gimp help" => $test_zci,
"gimp quick reference" => $test_zci,
"gimp reference" => $test_zci,
"gimp shortcut" => $test_zci,
"gimp shortcuts" => $test_zci
);
done_testing;