summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/schema/scalar_keywords_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/schema/scalar_keywords_test.cpp')
-rw-r--r--src/mongo/db/matcher/schema/scalar_keywords_test.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/matcher/schema/scalar_keywords_test.cpp b/src/mongo/db/matcher/schema/scalar_keywords_test.cpp
index 6de666dd3b9..04beec7b853 100644
--- a/src/mongo/db/matcher/schema/scalar_keywords_test.cpp
+++ b/src/mongo/db/matcher/schema/scalar_keywords_test.cpp
@@ -32,6 +32,7 @@
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/bson/json.h"
#include "mongo/db/matcher/expression_always_boolean.h"
+#include "mongo/db/matcher/schema/assert_serializes_to.h"
#include "mongo/db/matcher/schema/json_schema_parser.h"
#include "mongo/db/pipeline/expression_context_for_test.h"
#include "mongo/unittest/unittest.h"
@@ -39,13 +40,6 @@
namespace mongo {
namespace {
-#define ASSERT_SERIALIZES_TO(match, expected) \
- do { \
- BSONObjBuilder bob; \
- match->serialize(&bob); \
- ASSERT_BSONOBJ_EQ(bob.obj(), expected); \
- } while (false)
-
TEST(JSONSchemaParserScalarTest, MaximumTranslatesCorrectlyWithTypeNumber) {
BSONObj schema = fromjson("{properties: {num: {type: 'number', maximum: 0}}, type: 'object'}");
auto result = JSONSchemaParser::parse(new ExpressionContextForTest(), schema);