Sha256: 49cb2dee6642440b530ae834251f16b7a2489edcceebd3d368ef9531f7cb8597

Contents?: true

Size: 297 Bytes

Versions: 11

Compression:

Stored size: 297 Bytes

Contents

require 'facets/time/change.rb'
require 'test/unit'
require 'time'

class TC_Time_Change < Test::Unit::TestCase

  def test_change
    t = Time.parse('4/20/2006 15:37')
    n = Time.now
    n = n.change( :month=>4, :day=>20, :hour=>15, :min=>37, :year=>2006 )
    assert_equal( t, n )
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.7.0 test/core/time/test_change.rb
facets-2.6.0 test/core/time/test_change.rb
facets-2.4.0 test/time/test_change.rb
facets-2.4.1 test/time/test_change.rb
facets-2.4.3 test/core/time/test_change.rb
facets-2.4.2 test/core/time/test_change.rb
facets-2.4.4 test/core/time/test_change.rb
facets-2.4.5 test/core/time/test_change.rb
facets-2.5.0 test/core/time/test_change.rb
facets-2.5.1 test/core/time/test_change.rb
facets-2.5.2 test/core/time/test_change.rb