Sha256: 8b7f44cd7986db88d77caeab9f9902be3c8ae37cbd10c4f2d34c5aaf14e48322
Contents?: true
Size: 262 Bytes
Versions: 2
Compression:
Stored size: 262 Bytes
Contents
require 'facets/string/to_time' require 'test/unit' class TC_String_To_Time < 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | test/core/string/test_to_time.rb |
facets-2.4.3 | test/core/string/test_to_time.rb |