diff options
Diffstat (limited to 'jstests/core/arrayfind2.js')
-rw-r--r-- | jstests/core/arrayfind2.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/arrayfind2.js b/jstests/core/arrayfind2.js index ca6b57c518b..b292b13bf52 100644 --- a/jstests/core/arrayfind2.js +++ b/jstests/core/arrayfind2.js @@ -9,14 +9,14 @@ function go( prefix ){ assert.eq( 1 , t.find( { a : { $all : [ { $elemMatch : { x : { $lt : 4 } } } , { $elemMatch : { x : { $gt : 5 } } } ] } } ).count() , prefix + " A4" ); - assert.throws( function() { return t.findOne( { a : { $all : [ 1, { $elemMatch : { x : 3 } } ] } } ) } ); - assert.throws( function() { return t.findOne( { a : { $all : [ /a/, { $elemMatch : { x : 3 } } ] } } ) } ); + assert.throws( function() { return t.findOne( { a : { $all : [ 1, { $elemMatch : { x : 3 } } ] } } ); } ); + assert.throws( function() { return t.findOne( { a : { $all : [ /a/, { $elemMatch : { x : 3 } } ] } } ); } ); } -t.save( { a : [ { x : 1 } , { x : 5 } ] } ) -t.save( { a : [ { x : 3 } , { x : 5 } ] } ) -t.save( { a : [ { x : 3 } , { x : 6 } ] } ) +t.save( { a : [ { x : 1 } , { x : 5 } ] } ); +t.save( { a : [ { x : 3 } , { x : 5 } ] } ); +t.save( { a : [ { x : 3 } , { x : 6 } ] } ); go( "no index" ); t.ensureIndex( { a : 1 } ); |