summaryrefslogtreecommitdiff
path: root/jstests/group1.js
diff options
context:
space:
mode:
authorMathias Stearn <redbeard0531@gmail.com>2009-09-16 13:05:47 +0800
committerEliot <eliot@10gen.com>2009-09-17 11:56:40 +0800
commit4a8c39140ba731efb5ca0bdb0c3521627b9f2469 (patch)
tree2949593d9f1284219bd411144b806c5d667ed570 /jstests/group1.js
parent0ec495c2eb1d027389c23988c6880eab4fa7936f (diff)
downloadmongo-4a8c39140ba731efb5ca0bdb0c3521627b9f2469.tar.gz
group() now uses full key-names in output SERVER-296
Signed-off-by: Eliot <eliot@10gen.com>
Diffstat (limited to 'jstests/group1.js')
-rw-r--r--jstests/group1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/group1.js b/jstests/group1.js
index df747471881..c4147c0d89a 100644
--- a/jstests/group1.js
+++ b/jstests/group1.js
@@ -56,8 +56,8 @@ p = { key : { 'name.first' : true } ,
res = t.group( p );
assert.eq( 2 , res.length , "Z1" );
-assert.eq( "a" , res[0].first , "Z2" )
-assert.eq( "b" , res[1].first , "Z3" )
+assert.eq( "a" , res[0]['name.first'] , "Z2" )
+assert.eq( "b" , res[1]['name.first'] , "Z3" )
assert.eq( 2 , res[0].count , "Z4" )
assert.eq( 1 , res[1].count , "Z5" )