new test for last-fixed bug

This commit is contained in:
Jim Menard 2009-01-12 09:59:46 -05:00
parent 3dd465ddec
commit fa171bff3b
1 changed files with 6 additions and 0 deletions

View File

@ -73,4 +73,10 @@ class ObjectIDTest < Test::Unit::TestCase
assert_equal @o.to_s, o2.to_s
end
def test_from_string_leading_zeroes
hex_str = '000000000000000000abcdef'
o = ObjectID.from_string(hex_str)
assert_equal hex_str, o.to_s
end
end