summaryrefslogtreecommitdiff
path: root/jni/ruby/test/rake/test_rake_late_time.rb
blob: 4b910a70855cc51fc89477917b60d6507d95b929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require File.expand_path('../helper', __FILE__)

class TestRakeLateTime < Rake::TestCase
  def test_late_time_comparisons
    late = Rake::LATE
    assert_equal late, late
    assert late >= Time.now
    assert late > Time.now
    assert late != Time.now
    assert Time.now < late
    assert Time.now <= late
    assert Time.now != late
  end

  def test_to_s
    assert_equal '<LATE TIME>', Rake::LATE.to_s
  end
end