Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add test

  • Loading branch information...
commit 23b5e89f6859e9b335e5e57fc84e8fc4e7e2dfe8 1 parent 3862057
Justin Balthrop authored November 20, 2009

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  test/tuple_test.rb
8  test/tuple_test.rb
@@ -24,6 +24,14 @@ class TupleTest < Test::Unit::TestCase
24 24
     assert_equal [1], Tuple.load(Tuple.dump(1))
25 25
   end
26 26
 
  27
+  should "dump times consistently" do
  28
+    t = '2009-10-15 1:23:45 PM'
  29
+    tuple = Tuple.dump(Time.parse(t))
  30
+    100000.times do
  31
+      assert_equal tuple, Tuple.dump(Time.parse(t))
  32
+    end
  33
+  end
  34
+
27 35
   should "sort tuples using binary" do
28 36
     now   = Time.now.getgm
29 37
     today = Date.parse(now.to_s)

0 notes on commit 23b5e89

Please sign in to comment.
Something went wrong with that request. Please try again.