summaryrefslogtreecommitdiff
path: root/jstests/core/distinct_index2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/distinct_index2.js')
-rw-r--r--jstests/core/distinct_index2.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/core/distinct_index2.js b/jstests/core/distinct_index2.js
index 67d28b8b95e..8899a048714 100644
--- a/jstests/core/distinct_index2.js
+++ b/jstests/core/distinct_index2.js
@@ -1,8 +1,8 @@
t = db.distinct_index2;
t.drop();
-t.ensureIndex( { a : 1 , b : 1 } )
-t.ensureIndex( { c : 1 } )
+t.ensureIndex( { a : 1 , b : 1 } );
+t.ensureIndex( { c : 1 } );
// Uniformly distributed dataset.
// If we use a randomly generated dataset, we might not
@@ -15,25 +15,25 @@ for ( var a=0; a<10; a++ ) {
}
}
-correct = []
+correct = [];
for ( i=0; i<10; i++ )
- correct.push( i )
+ correct.push( i );
function check( field ){
- res = t.distinct( field )
- res = res.sort()
+ res = t.distinct( field );
+ res = res.sort();
assert.eq( correct , res , "check: " + field );
if ( field != "a" ){
- res = t.distinct( field , { a : 1 } )
- res = res.sort()
+ res = t.distinct( field , { a : 1 } );
+ res = res.sort();
assert.eq( correct , res , "check 2: " + field );
}
}
-check( "a" )
-check( "b" )
-check( "c" )
+check( "a" );
+check( "b" );
+check( "c" );
// hashed index should produce same results.
t.dropIndexes();