Sha256: 61c8fe900b664daecedc07f3e0fdc1e5a3cad74468e1267f1896bac50c727fc7
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_date_time_random_test" class TimeTest < Minitest::Test def test_random random = Time.random assert_kind_of(Time, random) end def test_random_with_range now = Time.now range = (now - 1000)..(now + 1000) random = Time.random(range) assert_kind_of(Time, 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/time_test.rb |