diff options
Diffstat (limited to 'jstests/core/geo_s2index.js')
-rw-r--r-- | jstests/core/geo_s2index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/core/geo_s2index.js b/jstests/core/geo_s2index.js index e110cb1ce04..af4475a79cb 100644 --- a/jstests/core/geo_s2index.js +++ b/jstests/core/geo_s2index.js @@ -159,6 +159,12 @@ assert.commandFailedWithCode(res, ErrorCodes.TypeMismatch); res = t.createIndex({loc: '2dsphere'}, {coarsestIndexedLevel: 'NOT_A_NUMBER'}); assert.commandFailedWithCode(res, ErrorCodes.TypeMismatch); +res = t.createIndex({loc: '2dsphere'}, {finestIndexedLevel: true}); +assert.commandFailedWithCode(res, ErrorCodes.TypeMismatch); + +res = t.createIndex({loc: '2dsphere'}, {coarsestIndexedLevel: true}); +assert.commandFailedWithCode(res, ErrorCodes.TypeMismatch); + // Ensure polygon which previously triggered an assertion error in SERVER-19674 // is able to be indexed. t.drop(); |