We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a842712 commit 81243cdCopy full SHA for 81243cd
test/map.test.js
@@ -21,6 +21,14 @@ test('should throw with invalid usage', (assert) => {
21
assert.throws(function() { new mapnik.Map('foo'); });
22
assert.throws(function() { new mapnik.Map('a', 'b', 'c'); });
23
assert.throws(function() { new mapnik.Map(new mapnik.Map(1, 1)); });
24
+ assert.throws(function() { new mapnik.Map(0, 1);});
25
+ assert.throws(function() { new mapnik.Map(1, 0);});
26
+ assert.throws(function() { new mapnik.Map(-1, 1);});
27
+ assert.throws(function() { new mapnik.Map(1, -1);});
28
+ assert.throws(function() { new mapnik.Map(NaN, 1);});
29
+ assert.throws(function() { new mapnik.Map(1, NaN);});
30
+ assert.throws(function() { new mapnik.Map(Infinity, 1);});
31
+ assert.throws(function() { new mapnik.Map(1, Infinity);});
32
assert.end();
33
});
34
0 commit comments