@@ -147,15 +147,15 @@ import cscal = require( './index' );
147
147
const cx = new Complex64Array ( 10 ) ;
148
148
const ca = new Complex64 ( 2.0 , 2.0 ) ;
149
149
150
- cscal ( cx . length , ca , 10 , 1 , 0 ) ; // $ExpectError
151
- cscal ( cx . length , ca , '10' , 1 , 0 ) ; // $ExpectError
152
- cscal ( cx . length , ca , true , 1 , 0 ) ; // $ExpectError
153
- cscal ( cx . length , ca , false , 1 , 0 ) ; // $ExpectError
154
- cscal ( cx . length , ca , null , 1 , 0 ) ; // $ExpectError
155
- cscal ( cx . length , ca , undefined , 1 , 0 ) ; // $ExpectError
156
- cscal ( cx . length , ca , [ '1' ] , 1 , 0 ) ; // $ExpectError
157
- cscal ( cx . length , ca , { } , 1 , 0 ) ; // $ExpectError
158
- cscal ( cx . length , ca , ( cx : number ) : number => cx , 1 , 0 ) ; // $ExpectError
150
+ cscal . ndarray ( cx . length , ca , 10 , 1 , 0 ) ; // $ExpectError
151
+ cscal . ndarray ( cx . length , ca , '10' , 1 , 0 ) ; // $ExpectError
152
+ cscal . ndarray ( cx . length , ca , true , 1 , 0 ) ; // $ExpectError
153
+ cscal . ndarray ( cx . length , ca , false , 1 , 0 ) ; // $ExpectError
154
+ cscal . ndarray ( cx . length , ca , null , 1 , 0 ) ; // $ExpectError
155
+ cscal . ndarray ( cx . length , ca , undefined , 1 , 0 ) ; // $ExpectError
156
+ cscal . ndarray ( cx . length , ca , [ '1' ] , 1 , 0 ) ; // $ExpectError
157
+ cscal . ndarray ( cx . length , ca , { } , 1 , 0 ) ; // $ExpectError
158
+ cscal . ndarray ( cx . length , ca , ( cx : number ) : number => cx , 1 , 0 ) ; // $ExpectError
159
159
}
160
160
161
161
// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
0 commit comments