Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions lib/node_modules/@stdlib/blas/base/cscal/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ import cscal = require( './index' );
const cx = new Complex64Array( 10 );
const ca = new Complex64( 2.0, 2.0 );

cscal( cx.length, ca, 10, 1, 0 ); // $ExpectError
cscal( cx.length, ca, '10', 1, 0 ); // $ExpectError
cscal( cx.length, ca, true, 1, 0 ); // $ExpectError
cscal( cx.length, ca, false, 1, 0 ); // $ExpectError
cscal( cx.length, ca, null, 1, 0 ); // $ExpectError
cscal( cx.length, ca, undefined, 1, 0 ); // $ExpectError
cscal( cx.length, ca, [ '1' ], 1, 0 ); // $ExpectError
cscal( cx.length, ca, {}, 1, 0 ); // $ExpectError
cscal( cx.length, ca, ( cx: number ): number => cx, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, 10, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, '10', 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, true, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, false, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, null, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, undefined, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, [ '1' ], 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, {}, 1, 0 ); // $ExpectError
cscal.ndarray( cx.length, ca, ( cx: number ): number => cx, 1, 0 ); // $ExpectError
}

// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
Expand Down
Loading