summaryrefslogtreecommitdiff
path: root/jstests/core/indexg.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexg.js')
-rw-r--r--jstests/core/indexg.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/indexg.js b/jstests/core/indexg.js
index f4b2e0cada1..3cafede4cff 100644
--- a/jstests/core/indexg.js
+++ b/jstests/core/indexg.js
@@ -1,13 +1,13 @@
f = db.jstests_indexg;
f.drop();
-f.save( { list: [1, 2] } );
-f.save( { list: [1, 3] } );
+f.save({list: [1, 2]});
+f.save({list: [1, 3]});
doit = function() {
- assert.eq( 1, f.count( { list: { $in: [1], $ne: 3 } } ) );
- assert.eq( 1, f.count( { list: { $in: [1], $not:{$in: [3] } } } ) );
+ assert.eq(1, f.count({list: {$in: [1], $ne: 3}}));
+ assert.eq(1, f.count({list: {$in: [1], $not: {$in: [3]}}}));
};
doit();
-f.ensureIndex( { list: 1 } );
+f.ensureIndex({list: 1});
doit(); \ No newline at end of file