Permalink
Browse files

test for compound keys

  • Loading branch information...
1 parent abdc594 commit 431714d0eac19a195f143365925be5ac512ee7b4 @erh erh committed Feb 16, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 jstests/find7.js
View
@@ -0,0 +1,8 @@
+t = db.find7;
+t.drop();
+
+x = { "_id" : { "d" : 3649, "w" : "signed" }, "u" : { "3649" : 5 } };
+t.insert(x );
+assert.eq( x , t.findOne() , "A1" );
+assert.eq( x , t.findOne( { _id : x._id } ) , "A2" );
+

0 comments on commit 431714d

Please sign in to comment.