Flowdock
method

test_completion

Importance_0
v1_9_1_378 - Show latest stable - 0 notes - Class: TimeExtentionTest
test_completion() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/time.rb, line 673
    def test_completion
      now = Time.local(2001,11,29,21,26,35)
      assert_equal(Time.local( 2001,11,29,21,12),
                   Time.parse("2001/11/29 21:12", now))
      assert_equal(Time.local( 2001,11,29),
                   Time.parse("2001/11/29", now))
      assert_equal(Time.local( 2001,11,29),
                   Time.parse(     "11/29", now))
      #assert_equal(Time.local(2001,11,1), Time.parse("Nov", now))
      assert_equal(Time.local( 2001,11,29,10,22),
                   Time.parse(           "10:22", now))
    end
Register or log in to add new notes.