Skip to content

Commit 56bf3f6

Browse files
authored
Update test.ts
Signed-off-by: Kaushikgtm <[email protected]>
1 parent 8584ab3 commit 56bf3f6

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/stats/base/nanmaxabs/docs/types

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/stats/base/nanmaxabs/docs/types/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2020 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -17,15 +17,15 @@
1717
*/
1818

1919
import nanmaxabs = require( './index' );
20-
20+
import AccessorArray = require( '@stdlib/array/base/accessor' );
2121

2222
// TESTS //
2323

2424
// The function returns a number...
2525
{
2626
const x = new Float64Array( 10 );
2727

28-
nanmaxabs( x.length, x, 1 ); // $ExpectType number
28+
nanmaxabs( x.length, new AccessorArray( x ), 1 ); // $ExpectType number
2929
}
3030

3131
// The compiler throws an error if the function is provided a first argument which is not a number...
@@ -84,7 +84,7 @@ import nanmaxabs = require( './index' );
8484
{
8585
const x = new Float64Array( 10 );
8686

87-
nanmaxabs.ndarray( x.length, x, 1, 0 ); // $ExpectType number
87+
nanmaxabs.ndarray( x.length, new AccessorArray( x ), 1, 0 ); // $ExpectType number
8888
}
8989

9090
// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...

0 commit comments

Comments
 (0)