Sha256: 0e6b1db811b2bae37972379c228d23c19e74d8aec99f6dd27b719d452931bb8e

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/string/to_time.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/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.0.3 packages/core/test/lib/facet/string/test_to_time.rb