summaryrefslogtreecommitdiff
path: root/t/test-custodian-util-timespan.rb
diff options
context:
space:
mode:
Diffstat (limited to 't/test-custodian-util-timespan.rb')
-rwxr-xr-xt/test-custodian-util-timespan.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/test-custodian-util-timespan.rb b/t/test-custodian-util-timespan.rb
index 307a171..048f582 100755
--- a/t/test-custodian-util-timespan.rb
+++ b/t/test-custodian-util-timespan.rb
@@ -150,4 +150,17 @@ class TestTimeSpanUtil < Test::Unit::TestCase
end
+
+ #
+ # Since the implementation of our test involves
+ # iterating over the specified period then any 24-hour
+ # period is the worst case.
+ #
+ #
+ def test_worst()
+ for i in 0..23
+ assert( Custodian::Util::TimeSpan.inside?( 0, 23, i ) )
+ end
+
+ end
end