Skip to content

Commit 2993e90

Browse files
authored
chore: follow-up fixes
PR-URL: #11966 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent e7f93b6 commit 2993e90

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base

lib/node_modules/@stdlib/ndarray/base/consensus-order/docs/types/test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
import consensusLayout = require( './index' );
19+
import consensusOrder = require( './index' );
2020

2121

2222
// TESTS //
@@ -26,24 +26,24 @@ import consensusLayout = require( './index' );
2626
const sx = [ 2, 1 ];
2727
const sy = [ 2, 1 ];
2828
const sz = [ 4, 2 ];
29-
consensusLayout( [ sx, sy, sz ] ); // $ExpectType Layout
29+
consensusOrder( [ sx, sy, sz ] ); // $ExpectType Layout
3030
}
3131

3232
// The compiler throws an error if the function is provided a first argument which is not an array-like object of numbers...
3333
{
34-
consensusLayout( true ); // $ExpectError
35-
consensusLayout( false ); // $ExpectError
36-
consensusLayout( '5' ); // $ExpectError
37-
consensusLayout( 123 ); // $ExpectError
38-
consensusLayout( {} ); // $ExpectError
39-
consensusLayout( ( x: number ): number => x ); // $ExpectError
34+
consensusOrder( true ); // $ExpectError
35+
consensusOrder( false ); // $ExpectError
36+
consensusOrder( '5' ); // $ExpectError
37+
consensusOrder( 123 ); // $ExpectError
38+
consensusOrder( {} ); // $ExpectError
39+
consensusOrder( ( x: number ): number => x ); // $ExpectError
4040
}
4141

4242
// The compiler throws an error if the function is provided an unsupported number of arguments...
4343
{
4444
const sx = [ 2, 1 ];
4545
const sy = [ 2, 1 ];
4646
const sz = [ 4, 2 ];
47-
consensusLayout(); // $ExpectError
48-
consensusLayout( [ sx, sy, sz ], [] ); // $ExpectError
47+
consensusOrder(); // $ExpectError
48+
consensusOrder( [ sx, sy, sz ], [] ); // $ExpectError
4949
}

lib/node_modules/@stdlib/ndarray/base/output-order/benchmark/benchmark.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ bench( pkg, function benchmark( b ) {
5151
var i;
5252

5353
arr = [
54-
[ array( 'row-major' ), array( 'row-major') ],
55-
[ array( 'row-major' ), array( 'column-major') ],
56-
[ array( 'column-major' ), array( 'column-major') ]
54+
[ array( 'row-major' ), array( 'row-major' ) ],
55+
[ array( 'row-major' ), array( 'column-major' ) ],
56+
[ array( 'column-major' ), array( 'column-major' ) ]
5757
];
5858

5959
b.tic();
6060
for ( i = 0; i < b.iterations; i++ ) {
61-
out = outputOrder( [ arr[ i%arr.length ] ] );
61+
out = outputOrder( arr[ i%arr.length ] );
6262
if ( typeof out !== 'string' ) {
6363
b.fail( 'should return a string' );
6464
}

0 commit comments

Comments
 (0)