Skip to content

Commit ca19780

Browse files
committed
test: add tests
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 55d22b7 commit ca19780

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/consensus-order/test

lib/node_modules/@stdlib/ndarray/base/consensus-order/test/test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ tape( 'the function returns a storage layout (mixed order)', function test( t )
8686
t.end();
8787
});
8888

89+
tape( 'the function returns a storage layout (both orders)', function test( t ) {
90+
var sx;
91+
var sy;
92+
var sz;
93+
var o;
94+
95+
sx = [ 1, 1 ]; // row-major
96+
sy = [ 2, 2 ]; // column-major
97+
sz = [ 0, 0 ]; // row-major
98+
99+
o = consensusOrder( [ sx, sy, sz ] );
100+
t.strictEqual( o, DEFAULT_ORDER, 'returns expected value' );
101+
102+
t.end();
103+
});
104+
89105
tape( 'the function returns a storage layout (mostly disorganized)', function test( t ) {
90106
var sx;
91107
var sy;

0 commit comments

Comments
 (0)