Sha256: e099369c26d7edbf4b8b088721865c889f5289531e5792f67a7fbd6054159980
Contents?: true
Size: 536 Bytes
Versions: 6
Compression:
Stored size: 536 Bytes
Contents
require 'test/unit' require 'webget_ruby_ramp' class TimeTest < Test::Unit::TestCase def test_stamp_with_class_method t=Time.stamp assert(t=~/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/,t) end def test_stamp_with_instance_method t=Time.now.stamp assert(t=~/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/,t) end def test_pack_with_class_method t=Time.pack assert(t=~/^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/,t) end def test_pack_with_instance_method t=Time.now.pack assert(t=~/^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/,t) end end
Version data entries
6 entries across 6 versions & 1 rubygems