diff options
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r-- | src/mongo/dbtests/jsobjtests.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp index a9a3638d462..13579765dfb 100644 --- a/src/mongo/dbtests/jsobjtests.cpp +++ b/src/mongo/dbtests/jsobjtests.cpp @@ -711,9 +711,7 @@ struct AppendNumber { b.appendNumber("c", (1024LL * 1024 * 1024) - 1); b.appendNumber("d", (1024LL * 1024 * 1024 * 1024) - 1); b.appendNumber("e", 1024LL * 1024 * 1024 * 1024 * 1024 * 1024); - if (Decimal128::enabled) { - b.appendNumber("f", mongo::Decimal128("1")); - } + b.appendNumber("f", mongo::Decimal128("1")); BSONObj o = b.obj(); keyTest(o); @@ -723,10 +721,7 @@ struct AppendNumber { ASSERT(o["c"].type() == NumberInt); ASSERT(o["d"].type() == NumberDouble); ASSERT(o["e"].type() == NumberLong); - - if (Decimal128::enabled) { - ASSERT(o["f"].type() == NumberDecimal); - } + ASSERT(o["f"].type() == NumberDecimal); } }; @@ -1627,10 +1622,8 @@ public: ASSERT_EQUALS(objTypeOf(1LL), NumberLong); ASSERT_EQUALS(arrTypeOf(1LL), NumberLong); - if (Decimal128::enabled) { - ASSERT_EQUALS(objTypeOf(mongo::Decimal128("1")), NumberDecimal); - ASSERT_EQUALS(arrTypeOf(mongo::Decimal128("1")), NumberDecimal); - } + ASSERT_EQUALS(objTypeOf(mongo::Decimal128("1")), NumberDecimal); + ASSERT_EQUALS(arrTypeOf(mongo::Decimal128("1")), NumberDecimal); ASSERT_EQUALS(objTypeOf(MAXKEY), MaxKey); ASSERT_EQUALS(arrTypeOf(MAXKEY), MaxKey); |