summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-06-08 10:56:27 -0400
committerEliot Horowitz <eliot@10gen.com>2009-06-08 10:56:27 -0400
commit2536e9eae0c4f863fa1c9449133023d205b38629 (patch)
tree0a4450cbfccd2e0afb7f49328ed184e616c354c1
parentd5122c9b90ef1f45585e09c45610488ff76894cf (diff)
downloadmongo-2536e9eae0c4f863fa1c9449133023d205b38629.tar.gz
actual test for group
-rw-r--r--jstests/group1.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/jstests/group1.js b/jstests/group1.js
index e7b1d5ef5d7..dcd3b66dcdf 100644
--- a/jstests/group1.js
+++ b/jstests/group1.js
@@ -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" );
+