From 18b33197261d9904c35acd8df822c8e3d915d571 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 1 Oct 2014 04:38:19 +0200 Subject: [PATCH] TwelveOclock: add answer_type and is_cached. --- lib/DDG/Goodie/TwelveOclock.pm | 3 +++ t/TwelveOclock.t | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/TwelveOclock.pm b/lib/DDG/Goodie/TwelveOclock.pm index 8e128e74b..adf05e325 100644 --- a/lib/DDG/Goodie/TwelveOclock.pm +++ b/lib/DDG/Goodie/TwelveOclock.pm @@ -3,6 +3,9 @@ package DDG::Goodie::TwelveOclock; use DDG::Goodie; +zci answer_type => "twelve_oclock"; +zci is_cached => 1; + primary_example_queries "is 12:00am noon?", "is 1200pm midnight?"; secondary_example_queries "when is noon?", "when is midnight?"; description "Succinct explanation of what this instant answer does"; diff --git a/t/TwelveOclock.t b/t/TwelveOclock.t index 1a864c3a6..bb43e581b 100644 --- a/t/TwelveOclock.t +++ b/t/TwelveOclock.t @@ -5,7 +5,8 @@ use warnings; use Test::More; use DDG::Test::Goodie; -zci answer_type => "twelveoclock"; +zci answer_type => "twelve_oclock"; +zci is_cached => 1; ddg_goodie_test([qw( DDG::Goodie::TwelveOclock