Sha256: 7ba47794bf113636b96364579d1d2b2fd9cc5813ca6eb12c2c54c0c418efc3df
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
# -*- coding: utf-8 -*- require "minitest/autorun" require "coveralls"; Coveralls.wear! require "simplecov"; SimpleCov.start require "sixarm_ruby_date_time_rand" class TimeTest < Minitest::Test def test_rand rand = Time.rand assert_kind_of(Time, rand) end def test_rand_with_range now = Time.now range = (now - 1000)..(now + 1000) rand = Time.rand(range) assert_kind_of(Time, rand) assert(range.begin <= rand && rand <= range.end) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_date_time_rand-2.0.2 | test/sixarm_ruby_date_time_rand_test/time_test.rb |