diff options
Diffstat (limited to 'jstests/core/all2.js')
-rw-r--r-- | jstests/core/all2.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/all2.js b/jstests/core/all2.js index 64372ca5e97..6beb346775d 100644 --- a/jstests/core/all2.js +++ b/jstests/core/all2.js @@ -2,9 +2,9 @@ t = db.all2; t.drop(); -t.save( { a : [ { x : 1 } , { x : 2 } ] } ) -t.save( { a : [ { x : 2 } , { x : 3 } ] } ) -t.save( { a : [ { x : 3 } , { x : 4 } ] } ) +t.save( { a : [ { x : 1 } , { x : 2 } ] } ); +t.save( { a : [ { x : 2 } , { x : 3 } ] } ); +t.save( { a : [ { x : 3 } , { x : 4 } ] } ); state = "no index"; @@ -42,9 +42,9 @@ check( 0 , { "a.x" : { $all : [ 1 , 3 ] } } , "H" ); t.drop(); -t.save( { a : [ 1 , 2 ] } ) -t.save( { a : [ 2 , 3 ] } ) -t.save( { a : [ 3 , 4 ] } ) +t.save( { a : [ 1 , 2 ] } ); +t.save( { a : [ 2 , 3 ] } ); +t.save( { a : [ 3 , 4 ] } ); state = "more no index"; @@ -76,10 +76,10 @@ check( 0 , { "a" : { $all : [ 1 , 3 ] } } , "H" ); // more 2 -state = "more 2" +state = "more 2"; t.drop(); -t.save( { name : [ "harry","jack","tom" ] } ) +t.save( { name : [ "harry","jack","tom" ] } ); check( 0 , { name : { $all : ["harry","john"] } } , "A" ); t.ensureIndex( { name : 1 } ); check( 0 , { name : { $all : ["harry","john"] } } , "B" ); |