Sha256: 04d7022bb1179018c7137b3c036243b111c63e6bf295ffd2b109e3057579f898
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_date_time_random_test" class DateTest < Minitest::Test def test_random random = Date.random assert_kind_of(Date, random) end def test_random_with_range today = Date.today range = (today - 1000)..(today + 1000) random = Date.random(range) assert_kind_of(Date, random) assert(range.begin <= random && random <= range.end) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_date_time_random-3.0.0 | test/sixarm_ruby_date_time_random_test/date_test.rb |