summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-04-20 09:23:39 -0400
committerdwight <dwight@10gen.com>2011-04-20 09:23:39 -0400
commit6b6dd6e45d1a933ff646c1b6c3175881be0bc9d5 (patch)
tree28b2b61cabca91c9502741e5118945501dc65495 /dbtests
parent4f2f00bba00b997949d9acb2e9de49e9f583b976 (diff)
downloadmongo-6b6dd6e45d1a933ff646c1b6c3175881be0bc9d5.tar.gz
new test
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/jsobjtests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbtests/jsobjtests.cpp b/dbtests/jsobjtests.cpp
index f6061a1b477..edf274c0941 100644
--- a/dbtests/jsobjtests.cpp
+++ b/dbtests/jsobjtests.cpp
@@ -443,6 +443,11 @@ namespace JsobjTests {
keyTest( BSON("abc" << true ) );
keyTest( BSON("abc" << false ) );
keyTest( BSON("abc" << false << "b" << true ) );
+
+ Date_t now = jsTime();
+ keyTest( BSON("" << now << "" << 3 << "" << jstNULL << "" << true) );
+ keyTest( BSON("" << now << "" << 3 << "" << BSONObj() << "" << true) );
+
}
};