File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ test('should throw with invalid usage', (assert) => {
21
21
assert . throws ( function ( ) { new mapnik . Map ( 'foo' ) ; } ) ;
22
22
assert . throws ( function ( ) { new mapnik . Map ( 'a' , 'b' , 'c' ) ; } ) ;
23
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 ) ; } ) ;
24
32
assert . end ( ) ;
25
33
} ) ;
26
34
You can’t perform that action at this time.
0 commit comments