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:
parent
d5122c9b90
commit
2536e9eae0
@ -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" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user