Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 4, 2022
1 parent c0ca068 commit 7109039
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

2 changes: 1 addition & 1 deletion lib/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function set() {
M = this._submode.length;
for ( i = 0; i < arguments.length-1; i++ ) {
if ( !isInteger( arguments[ i ] ) ) {
throw new TypeError( format( 'invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%u`.', i, arguments[ i ] ) );
throw new TypeError( format( 'invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%s`.', i, arguments[ i ] ) );
}
ind = getIndex( arguments[ i ], this._shape[ i ]-1, this._submode[ i%M ] ); // eslint-disable-line max-len
idx += this._strides[ i ] * ind;
Expand Down
16 changes: 12 additions & 4 deletions test/test.instance.tojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ tape( 'an ndarray constructor returns an instance which has a custom `toJSON()`
'shape': [ 2, 2 ],
'strides': [ 2, 1 ],
'order': 'row-major',
'flags': {}
'flags': {
'READONLY': false
}
};
actual = arr.toJSON();
t.deepEqual( actual, expected, 'returns expected value' );
Expand Down Expand Up @@ -107,7 +109,9 @@ tape( 'an ndarray constructor returns an instance which has a custom `toJSON()`
'shape': [ 2, 2 ],
'strides': [ 1, 2 ],
'order': 'column-major',
'flags': {}
'flags': {
'READONLY': false
}
};
actual = arr.toJSON();
t.deepEqual( actual, expected, 'returns expected value' );
Expand Down Expand Up @@ -146,7 +150,9 @@ tape( 'an ndarray constructor returns an instance which has a custom `toJSON()`
'shape': [],
'strides': [ 0 ],
'order': 'column-major',
'flags': {}
'flags': {
'READONLY': false
}
};
actual = arr.toJSON();
t.deepEqual( actual, expected, 'returns expected value' );
Expand Down Expand Up @@ -185,7 +191,9 @@ tape( 'an ndarray constructor returns an instance which has a custom `toJSON()`
'shape': [ 2, 2 ],
'strides': [ 2, 1 ],
'order': 'row-major',
'flags': {}
'flags': {
'READONLY': false
}
};
actual = arr.toJSON();
t.deepEqual( actual, expected, 'returns expected value' );
Expand Down

0 comments on commit 7109039

Please sign in to comment.