Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

test for compound keys

  • Loading branch information...
commit 431714d0eac19a195f143365925be5ac512ee7b4 1 parent abdc594
Eliot authored February 16, 2010

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  jstests/find7.js
8  jstests/find7.js
... ...
@@ -0,0 +1,8 @@
  1
+t = db.find7;
  2
+t.drop();
  3
+
  4
+x = { "_id" : { "d" : 3649, "w" : "signed" }, "u" : { "3649" : 5 } };
  5
+t.insert(x );
  6
+assert.eq( x , t.findOne() , "A1" );
  7
+assert.eq( x , t.findOne( { _id : x._id } ) , "A2" );
  8
+

0 notes on commit 431714d

Please sign in to comment.
Something went wrong with that request. Please try again.