From 117b935ba548503325cfb8b6b42bede08c45385c Mon Sep 17 00:00:00 2001 From: elebow Date: Sat, 12 Jul 2014 15:58:43 -0400 Subject: [PATCH] GimpCheatSheet: Add tests. --- t/GimpCheatSheet.t | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 t/GimpCheatSheet.t diff --git a/t/GimpCheatSheet.t b/t/GimpCheatSheet.t new file mode 100644 index 000000000..1bf1673b2 --- /dev/null +++ b/t/GimpCheatSheet.t @@ -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#$#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; +