Sha256: 4d9f471cd08a70f4fa0501d538ae39c203ee7ba15c6b0a62f9f71a0f0ebc60e3

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/to_time.rb
#
# Extracted Fri Feb 16 02:00:37 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/string/to_time.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_to_time
      s = "2:31:15 PM"
      t = s.to_time
      assert_equal( 14, t.hour )
      assert_equal( 31, t.min )
      assert_equal( 15, t.sec )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/string/test_to_time.rb