Permalink
Browse files

added DaysBetween test

  • Loading branch information...
1 parent aa84729 commit 76a5791df34caf0f1848395dd862eb35c65e3227 @majuscule majuscule committed Apr 21, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 t/DaysBetween.t
View
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Test::More;
+use DDG::Test::Goodie;
+
+zci answer_type => 'days_between';
+zci is_cached => 1;
+
+ddg_goodie_test(
+ [qw(
+ DDG::Goodie::DaysBetween
+ )],
+ 'days between 01/01/2000 01/01/2001' => test_zci('366 days between'),
+ 'days between 01/01/2000 01/01/2001 inclusive' => test_zci('367 days between'),
+);
+
+done_testing;

0 comments on commit 76a5791

Please sign in to comment.