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

Version Path
webget_ruby_ramp-1.8.2 test/webget_ruby_ramp/time_test.rb
webget_ruby_ramp-1.8.0 test/webget_ruby_ramp/time_test.rb
webget_ruby_ramp-1.7.8 test/webget_ruby_ramp/time_test.rb
webget_ruby_ramp-1.7.7 test/webget_ruby_ramp/time_test.rb
webget_ruby_ramp-1.7.6 test/webget_ruby_ramp/time_test.rb
webget_ruby_ramp-1.7.5 test/webget_ruby_ramp/time_test.rb