summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bson_field_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bson_field_test.cpp')
-rw-r--r--src/mongo/bson/bson_field_test.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/mongo/bson/bson_field_test.cpp b/src/mongo/bson/bson_field_test.cpp
index 7e0925470b9..b6fbb0fd565 100644
--- a/src/mongo/bson/bson_field_test.cpp
+++ b/src/mongo/bson/bson_field_test.cpp
@@ -30,37 +30,37 @@
namespace {
- using mongo::BSONField;
- using mongo::BSONObj;
+using mongo::BSONField;
+using mongo::BSONObj;
- TEST(Assignment, Simple) {
- BSONField<int> x("x");
- BSONObj o = BSON(x << 5);
- ASSERT_EQUALS(BSON("x" << 5), o);
- }
+TEST(Assignment, Simple) {
+ BSONField<int> x("x");
+ BSONObj o = BSON(x << 5);
+ ASSERT_EQUALS(BSON("x" << 5), o);
+}
- TEST(Make, Simple) {
- BSONField<int> x("x");
- BSONObj o = BSON(x.make(5));
- ASSERT_EQUALS(BSON("x" << 5), o);
- }
+TEST(Make, Simple) {
+ BSONField<int> x("x");
+ BSONObj o = BSON(x.make(5));
+ ASSERT_EQUALS(BSON("x" << 5), o);
+}
- TEST(Query, GreaterThan) {
- BSONField<int> x("x");
- BSONObj o = BSON(x(5));
- ASSERT_EQUALS(BSON("x" << 5), o);
+TEST(Query, GreaterThan) {
+ BSONField<int> x("x");
+ BSONObj o = BSON(x(5));
+ ASSERT_EQUALS(BSON("x" << 5), o);
- o = BSON(x.gt(5));
- ASSERT_EQUALS(BSON("x" << BSON("$gt" << 5)), o);
- }
+ o = BSON(x.gt(5));
+ ASSERT_EQUALS(BSON("x" << BSON("$gt" << 5)), o);
+}
- TEST(Query, NotEqual) {
- BSONField<int> x("x");
- BSONObj o = BSON(x(10));
- ASSERT_EQUALS(BSON("x" << 10), o);
+TEST(Query, NotEqual) {
+ BSONField<int> x("x");
+ BSONObj o = BSON(x(10));
+ ASSERT_EQUALS(BSON("x" << 10), o);
- o = BSON(x.ne(5));
- ASSERT_EQUALS(BSON("x" << BSON("$ne" << 5)), o);
- }
+ o = BSON(x.ne(5));
+ ASSERT_EQUALS(BSON("x" << BSON("$ne" << 5)), o);
+}
-} // unnamed namespace
+} // unnamed namespace