0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

actual test for group

This commit is contained in:
Eliot Horowitz 2009-06-08 10:56:27 -04:00
parent d5122c9b90
commit 2536e9eae0

View File

@ -14,4 +14,9 @@ res = t.group( { key : { a : true } ,
}
);
printjson( res );
assert( res.length == 2 , "A" );
assert( res[0].a == 1 , "B" );
assert( res[0].count == 2 , "C" );
assert( res[1].a == 2 , "D" );
assert( res[1].count == 3 , "E" );