diff options
Diffstat (limited to 'jni/ruby/test/rake/test_rake_late_time.rb')
-rw-r--r-- | jni/ruby/test/rake/test_rake_late_time.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/jni/ruby/test/rake/test_rake_late_time.rb b/jni/ruby/test/rake/test_rake_late_time.rb new file mode 100644 index 0000000..4b910a7 --- /dev/null +++ b/jni/ruby/test/rake/test_rake_late_time.rb @@ -0,0 +1,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 |