summaryrefslogtreecommitdiff
path: root/jstests/core/regex5.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/regex5.js')
-rw-r--r--jstests/core/regex5.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/regex5.js b/jstests/core/regex5.js
index fab3eb9973c..5e3b7d0a6d3 100644
--- a/jstests/core/regex5.js
+++ b/jstests/core/regex5.js
@@ -1,6 +1,6 @@
-t = db.regex5
-t.drop()
+t = db.regex5;
+t.drop();
// Add filler data to make sure that indexed solutions are
// chosen over collection scans.
@@ -8,11 +8,11 @@ for (var i = 0; i < 10; i++) {
t.save({filler: "filler"});
}
-t.save( { x : [ "abc" , "xyz1" ] } )
-t.save( { x : [ "ac" , "xyz2" ] } )
+t.save( { x : [ "abc" , "xyz1" ] } );
+t.save( { x : [ "ac" , "xyz2" ] } );
-a = /.*b.*c/
-x = /.*y.*/
+a = /.*b.*c/;
+x = /.*y.*/;
doit = function() {
@@ -28,8 +28,8 @@ doit = function() {
assert.eq( 11 , t.find( { x : { $nin: [ a, "xyz1" ] } } ).count() , "J" ); // SERVER-322
assert.eq( 10 , t.find( { x : { $nin: [ a, "xyz2" ] } } ).count() , "K" ); // SERVER-322
assert.eq( 2 , t.find( { x : { $not: { $nin: [ x ] } } } ).count() , "L" ); // SERVER-322
- assert.eq( 11 , t.find( { x : { $nin: [ /^a.c/ ] } } ).count() , "M" ) // SERVER-322
-}
+ assert.eq( 11 , t.find( { x : { $nin: [ /^a.c/ ] } } ).count() , "M" ); // SERVER-322
+};
doit();
t.ensureIndex( {x:1} );