2014-09-15 13:06:36 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2014-09-30 19:38:19 -07:00
|
|
|
zci answer_type => "twelve_oclock";
|
|
|
|
zci is_cached => 1;
|
2014-09-15 13:06:36 -07:00
|
|
|
|
|
|
|
ddg_goodie_test([qw(
|
|
|
|
DDG::Goodie::TwelveOclock
|
|
|
|
)
|
|
|
|
],
|
2014-09-17 05:31:20 -07:00
|
|
|
'is 1200a.m. noon' => test_zci('No, 12:00am is midnight.'),
|
|
|
|
'is 1200pm noon?' => test_zci('Yes, 12:00pm is noon.'),
|
|
|
|
'is 12:00 am midnight' => test_zci('Yes, 12:00am is midnight.'),
|
|
|
|
'is 12:00 pm midnight?' => test_zci('No, 12:00pm is noon.'),
|
|
|
|
'is 12:00 p.m. midnight?' => test_zci('No, 12:00pm is noon.'),
|
|
|
|
'is 12:00 AM midnight?' => test_zci('Yes, 12:00am is midnight.'),
|
|
|
|
'noon is 12:00 p.m.' => test_zci('Yes, 12:00pm is noon.'),
|
|
|
|
'midnight is 12 AM' => test_zci('Yes, 12:00am is midnight.'),
|
2014-09-15 13:06:36 -07:00
|
|
|
'is 12:00P.M. midnight or noon?' => test_zci('12:00pm is noon.'),
|
|
|
|
'is 12am noon or midnight' => test_zci('12:00am is midnight.'),
|
2014-09-17 05:31:20 -07:00
|
|
|
'when is midnight' => test_zci('12:00am is midnight.'),
|
|
|
|
'when is noon?' => test_zci('12:00pm is noon.'),
|
2014-09-15 13:06:36 -07:00
|
|
|
'threat level midnight' => undef,
|
|
|
|
'12 midnight' => undef,
|
|
|
|
'midnight movies' => undef,
|
2014-09-17 05:31:20 -07:00
|
|
|
'when is the midnight showing?' => undef,
|
|
|
|
'when is noon in Jakarta?' => undef,
|
2014-09-15 13:06:36 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|