summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2016-05-17 10:16:59 -0400
committerGeert Bosch <geert@mongodb.com>2016-05-18 13:34:27 -0400
commit08258bc54ed53df7cda57330d473bfa1dfd90658 (patch)
treec772b40e4d63d06dea23e3b145c6880bd426fb10 /src/mongo/dbtests/jsobjtests.cpp
parent66dc1f6a38932b894cdae77bd4b5f370a8d5a31a (diff)
downloadmongo-08258bc54ed53df7cda57330d473bfa1dfd90658.tar.gz
SERVER-23553 Remove Decimal128::enabled; now always true
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp15
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);