Sha256: 23f48be6dedac9234931d67b3fb3c52578b1959c131a5b1b30480796a04d9506

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

# -*- coding: utf-8 -*-
require "sixarm_ruby_ramp_test"

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

Version Path
sixarm_ruby_ramp-5.0.1 test/sixarm_ruby_ramp_test/time_test.rb
sixarm_ruby_ramp-5.0.0 test/sixarm_ruby_ramp_test/time_test.rb
sixarm_ruby_ramp-4.2.7 test/sixarm_ruby_ramp_test/time_test.rb
sixarm_ruby_ramp-4.2.5 test/sixarm_ruby_ramp_test/time_test.rb