new test for last-fixed bug
This commit is contained in:
parent
3dd465ddec
commit
fa171bff3b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue