diff options
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r-- | src/mongo/dbtests/jsobjtests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp index e1f1a057d77..b9bc00cde19 100644 --- a/src/mongo/dbtests/jsobjtests.cpp +++ b/src/mongo/dbtests/jsobjtests.cpp @@ -189,9 +189,8 @@ void keyTest(const BSONObj& o, bool mustBeCompact = false) { cout << r3 << endl; } ASSERT(ok); - if (k.isCompactFormat() && - kLast - ->isCompactFormat()) { // only check if not bson as bson woEqual is broken! (or was may2011) + // only check if not bson as bson woEqual is broken! (or was may2011) + if (k.isCompactFormat() && kLast->isCompactFormat()) { if (k.woEqual(*kLast) != (r2 == 0)) { // check woEqual matches cout << r2 << endl; cout << k.toString() << endl; @@ -901,7 +900,8 @@ public: ASSERT_EQUALS("123.4567891234568", x["d"].toString(false, true)); ASSERT_EQUALS("123456789.1234568", x["e"].toString(false, true)); - // ASSERT_EQUALS( "1.234567891234568e+21" , x["f"].toString( false , true ) ); // windows and *nix are different - TODO, work around for test or not bother? + // ASSERT_EQUALS( "1.234567891234568e+21" , x["f"].toString( false , true ) ); // windows + // and *nix are different - TODO, work around for test or not bother? ASSERT_EQUALS("-123.456", x["g"].toString(false, true)); |