diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-03-09 15:10:04 -0500 |
---|---|---|
committer | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-03-09 15:10:52 -0500 |
commit | c5a4250a649ab0afb4ecdf227d4a0400f9e68786 (patch) | |
tree | 51499f49e3edf03891f335164937333d2b6a7297 /src/mongo/bson | |
parent | a4d29b292f1bc42ae8133b0a0984c2b012c43528 (diff) | |
download | mongo-c5a4250a649ab0afb4ecdf227d4a0400f9e68786.tar.gz |
Revert "SERVER-32144 Remove test coverage for replication protocol version 0"
This reverts commit d05e04551b7e399a5554858de48541ae11988b10.
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/oid_test.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/bson/oid_test.cpp b/src/mongo/bson/oid_test.cpp index 8be156ae41d..7a0e6d6773d 100644 --- a/src/mongo/bson/oid_test.cpp +++ b/src/mongo/bson/oid_test.cpp @@ -149,16 +149,4 @@ TEST(Basic, FromStringToString) { std::string fromStr("541b1a00e8a23afa832b218e"); ASSERT_EQUALS(OID(fromStr).toString(), fromStr); } - -TEST(Basic, FromTerm) { - auto term = 7; - auto oid = OID::fromTerm(term); - - auto oidStr = oid.toString(); - auto oidHead = oidStr.substr(0, 8); - auto oidTail = oidStr.substr(oidStr.length() - 1); - - ASSERT_EQUALS("7fffffff", oidHead); - ASSERT_EQUALS(term, std::stoi(oidTail)); -} } |