diff options
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r-- | src/mongo/dbtests/jsobjtests.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp index 8cb06099dca..b156f004621 100644 --- a/src/mongo/dbtests/jsobjtests.cpp +++ b/src/mongo/dbtests/jsobjtests.cpp @@ -1271,6 +1271,21 @@ namespace JsobjTests { ASSERT( BSON("" << max).woCompare( BSON("" << oid) )> 0 ); } }; + + class Seq { + public: + void run() { + for ( int i=0; i<10000; i++ ) { + OID a; + OID b; + + a.initSequential(); + b.initSequential(); + + ASSERT( a < b ); + } + } + }; } // namespace OIDTests @@ -2293,6 +2308,7 @@ namespace JsobjTests { add< OIDTests::increasing >(); add< OIDTests::ToDate >(); add< OIDTests::FromDate >(); + add< OIDTests::Seq >(); add< ValueStreamTests::LabelBasic >(); add< ValueStreamTests::LabelShares >(); add< ValueStreamTests::LabelDouble >(); |