diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-02-10 17:37:56 -0500 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-02-11 16:34:40 -0500 |
commit | 76e7106f2577d9911bc6694bab0d1166b58cd977 (patch) | |
tree | 94e49eb685eba856ba45a58a02e4fd6b64c827e4 /jstests/core/geo_validate.js | |
parent | 871ce7691d0e1ebd87cf345f8355ad8bb04ba82e (diff) | |
download | mongo-76e7106f2577d9911bc6694bab0d1166b58cd977.tar.gz |
SERVER-17241 Verify number of loops of polygon
Diffstat (limited to 'jstests/core/geo_validate.js')
-rw-r--r-- | jstests/core/geo_validate.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/core/geo_validate.js b/jstests/core/geo_validate.js index 86eaeb59a22..2d3782e233a 100644 --- a/jstests/core/geo_validate.js +++ b/jstests/core/geo_validate.js @@ -86,3 +86,8 @@ assert.commandFailed(db.runCommand({geoNear: coll.getName(), // NaN is interpreted as limit 0 assert.commandWorked(db.runCommand({geoNear: coll.getName(), near: [0,0], spherical: true, num: NaN})); + + +// +// SERVER-17241 Polygon has no loop +assert.writeError(coll.insert({ geo : { type: 'Polygon', coordinates: [] } })); |