summaryrefslogtreecommitdiff
path: root/jstests/distinct1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-11-24 09:41:33 -0500
committerEliot Horowitz <eliot@10gen.com>2009-11-24 09:41:33 -0500
commitea24725b8e4117f0dc28b0d2b4b22cb9bbdb1f55 (patch)
tree7aaeef08c02c06a71677690f506b4db2c0b76534 /jstests/distinct1.js
parent4e9630f5d5b613050b9a040f665b534db81ffe03 (diff)
downloadmongo-ea24725b8e4117f0dc28b0d2b4b22cb9bbdb1f55.tar.gz
some command cleaning and query for distinct SERVER-437
Diffstat (limited to 'jstests/distinct1.js')
-rw-r--r--jstests/distinct1.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/distinct1.js b/jstests/distinct1.js
index 43957c827dd..433e0515e23 100644
--- a/jstests/distinct1.js
+++ b/jstests/distinct1.js
@@ -10,7 +10,9 @@ t.save( { a : 3 } )
res = t.distinct( "a" );
-assert.eq( "1,2,3" , res.toString() , "A" );
+assert.eq( "1,2,3" , res.toString() , "A1" );
+
+assert.eq( "1,2" , t.distinct( "a" , { a : { $lt : 3 } } ) , "A2" );
t.drop();
@@ -20,4 +22,4 @@ t.save( { a : { b : "c" } , c : 12 } );
t.save( { a : { b : "c" } , c : 12 } );
res = t.distinct( "a.b" );
-assert.eq( "a,b,c" , res.toString() , "B" );
+assert.eq( "a,b,c" , res.toString() , "B1" );