From: Matt S Trout Date: Thu, 14 May 2009 22:58:19 +0000 (+0100) Subject: check both days remaining types X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9c2ac83ecffae9f0688dbbce474037f94cf0088;hp=1dc0a45b2e5009481336560014759ca19a9fe3db;p=engit%2FIron-Munger.git check both days remaining types --- diff --git a/t/calculate.t b/t/calculate.t index bf4f986..4bc5b09 100644 --- a/t/calculate.t +++ b/t/calculate.t @@ -47,3 +47,15 @@ case two_posts_too_far_apart => expect sequential => 1, remaining => 5; + +case five_posts_ok_last_needed => + [ 4, 11, 18, 25, 32 ], + expect + sequential => 5, + remaining => 6; + +case five_posts_ok_aperture_needed => + [ 4, 11, 18, 28, 32 ], + expect + sequential => 5, + remaining => 4;