Sha256: 2a0ad800f8b9b9004be248e170967aa66d9320252de4aeea4552ae654aca03c2
Contents?: true
Size: 561 Bytes
Versions: 4
Compression:
Stored size: 561 Bytes
Contents
# -*- coding: utf-8 -*- require 'minitest/autorun' require 'sixarm_ruby_ramp' class TimeTest < Minitest::Test 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
4 entries across 4 versions & 1 rubygems