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) => {
2121 assert . throws ( function ( ) { new mapnik . Map ( 'foo' ) ; } ) ;
2222 assert . throws ( function ( ) { new mapnik . Map ( 'a' , 'b' , 'c' ) ; } ) ;
2323 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 ) ; } ) ;
2432 assert . end ( ) ;
2533} ) ;
2634
You can’t perform that action at this time.
0 commit comments