summaryrefslogtreecommitdiff
path: root/jstests/core/fts1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/fts1.js')
-rw-r--r--jstests/core/fts1.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/core/fts1.js b/jstests/core/fts1.js
index 5bdaa926b45..23364b2ecb7 100644
--- a/jstests/core/fts1.js
+++ b/jstests/core/fts1.js
@@ -1,20 +1,20 @@
-load( "jstests/libs/fts.js" );
+load("jstests/libs/fts.js");
t = db.text1;
t.drop();
-t.ensureIndex( { x : "text" } );
+t.ensureIndex({x: "text"});
-assert.eq( [] , queryIDS( t , "az" ) , "A0" );
+assert.eq([], queryIDS(t, "az"), "A0");
-t.save( { _id : 1 , x : "az b c" } );
-t.save( { _id : 2 , x : "az b" } );
-t.save( { _id : 3 , x : "b c" } );
-t.save( { _id : 4 , x : "b c d" } );
+t.save({_id: 1, x: "az b c"});
+t.save({_id: 2, x: "az b"});
+t.save({_id: 3, x: "b c"});
+t.save({_id: 4, x: "b c d"});
-assert.eq( [1,2,3,4] , queryIDS( t , "c az" ) , "A1" );
-assert.eq( [4] , queryIDS( t , "d" ) , "A2" );
+assert.eq([1, 2, 3, 4], queryIDS(t, "c az"), "A1");
+assert.eq([4], queryIDS(t, "d"), "A2");
idx = t.getIndexes()[1];
-assert( idx.v >= 1, tojson( idx ) );
-assert( idx.textIndexVersion >= 1, tojson( idx ) );
+assert(idx.v >= 1, tojson(idx));
+assert(idx.textIndexVersion >= 1, tojson(idx));