summaryrefslogtreecommitdiff
path: root/jstests/core/orb.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/orb.js')
-rw-r--r--jstests/core/orb.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/jstests/core/orb.js b/jstests/core/orb.js
index a4abdeecabf..345ac92d26e 100644
--- a/jstests/core/orb.js
+++ b/jstests/core/orb.js
@@ -3,15 +3,16 @@
var t = db.jstests_orb;
t.drop();
-t.save( {a:1} );
-t.ensureIndex( {a:-1} );
+t.save({a: 1});
+t.ensureIndex({a: -1});
-assert.eq.automsg( "1", "t.count( {$or: [ { a: { $gt:0,$lt:2 } }, { a: { $gt:-1,$lt:3 } } ] } )" );
+assert.eq.automsg("1", "t.count( {$or: [ { a: { $gt:0,$lt:2 } }, { a: { $gt:-1,$lt:3 } } ] } )");
t.drop();
-t.save( {a:1,b:1} );
-t.ensureIndex( {a:1,b:-1} );
+t.save({a: 1, b: 1});
+t.ensureIndex({a: 1, b: -1});
-assert.eq.automsg( "1", "t.count( {$or: [ { a: { $gt:0,$lt:2 } }, { a: { $gt:-1,$lt:3 } } ] } )" );
-assert.eq.automsg( "1", "t.count( {$or: [ { a:1, b: { $gt:0,$lt:2 } }, { a:1, b: { $gt:-1,$lt:3 } } ] } )" ); \ No newline at end of file
+assert.eq.automsg("1", "t.count( {$or: [ { a: { $gt:0,$lt:2 } }, { a: { $gt:-1,$lt:3 } } ] } )");
+assert.eq.automsg(
+ "1", "t.count( {$or: [ { a:1, b: { $gt:0,$lt:2 } }, { a:1, b: { $gt:-1,$lt:3 } } ] } )"); \ No newline at end of file