Skip to content

Commit 90acce2

Browse files
committed
Auto-generated commit
1 parent c25a38e commit 90acce2

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ A total of 49 issues were closed in this release:
923923

924924
<details>
925925

926+
- [`ca19780`](https://github.com/stdlib-js/stdlib/commit/ca197805be0fc683e455e6beec112efa69297496) - **test:** add tests _(by Athan Reines)_
926927
- [`55d22b7`](https://github.com/stdlib-js/stdlib/commit/55d22b7372bc9308ceeee70d202599d8a6897eef) - **docs:** fix description _(by Athan Reines)_
927928
- [`fbcdce5`](https://github.com/stdlib-js/stdlib/commit/fbcdce5ba59c49bfc26be799ef03371e8294813a) - **feat:** add `consensusOrder` to namespace _(by Athan Reines)_
928929
- [`b3ec3d3`](https://github.com/stdlib-js/stdlib/commit/b3ec3d3993be5ae78e6da79502d2cabc9eadb2ad) - **feat:** add `ndarray/base/consensus-order` _(by Athan Reines)_

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)