summaryrefslogtreecommitdiff
path: root/jstests/core/in4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/in4.js')
-rw-r--r--jstests/core/in4.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/jstests/core/in4.js b/jstests/core/in4.js
index cbe28e2e2df..c2f47bf8ed4 100644
--- a/jstests/core/in4.js
+++ b/jstests/core/in4.js
@@ -1,24 +1,24 @@
// SERVER-2343 Test $in empty array matching.
t = db.jstests_in9;
-t.drop();
+t.drop();
function someData() {
t.remove({});
- t.save( {key: []} );
+ t.save({key: []});
}
function moreData() {
- someData();
- t.save( {key: [1]} );
- t.save( {key: ['1']} );
- t.save( {key: null} );
- t.save( {} );
+ someData();
+ t.save({key: [1]});
+ t.save({key: ['1']});
+ t.save({key: null});
+ t.save({});
}
function check() {
- assert.eq( 1, t.count( {key:[]} ) );
- assert.eq( 1, t.count( {key:{$in:[[]]}} ) );
+ assert.eq(1, t.count({key: []}));
+ assert.eq(1, t.count({key: {$in: [[]]}}));
}
function doTest() {
@@ -26,10 +26,10 @@ function doTest() {
check();
moreData();
check();
-}
+}
-doTest();
+doTest();
// SERVER-1943 not fixed yet
-t.ensureIndex( {key:1} );
+t.ensureIndex({key: 1});
doTest();