summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" );
+