Sha256: c1a94013d596a626c5264a5b61e7cc2839d355ca3884451915fde59ca93377b6

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

# -*- coding: utf-8 -*-
require 'test/unit'
require 'simplecov'
SimpleCov.start
require 'sixarm_ruby_time_stamp'

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
 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_time_stamp-1.0.0 test/sixarm_ruby_time_stamp_test.rb