Skip to content

Commit 60b1ad8

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 6c1f1e5 commit 60b1ad8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/gediff/test/test.ndarray.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ tape( 'the function supports offset parameters', function test( t ) {
193193
var a;
194194
var o;
195195

196-
x = [ 0.0, 4.0, 8.0, 12.0, 16.0, 20.0 ];
196+
x = [ 0.0, 4.0, 7.0, 12.0, 16.0, 20.0 ];
197197
p = [ 10.0 ];
198198
a = [ 30.0 ];
199199
o = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
200200

201201
out = gediff( 3, x, 1, 2, 1, p, 1, 0, 1, a, 1, 0, o, 1, 0 );
202-
expected = [ 10.0, 4.0, 4.0, 30.0, 0.0, 0.0 ];
202+
expected = [ 10.0, 5.0, 4.0, 30.0, 0.0, 0.0 ];
203203
t.deepEqual( o, expected, 'returns expected value' );
204204
t.strictEqual( out, o, 'returns expected value' );
205205

@@ -214,14 +214,14 @@ tape( 'the function supports offset parameters (accessors)', function test( t )
214214
var a;
215215
var o;
216216

217-
x = toAccessorArray( [ 0.0, 4.0, 8.0, 12.0, 16.0, 20.0 ] );
217+
x = toAccessorArray( [ 0.0, 4.0, 7.0, 12.0, 16.0, 20.0 ] );
218218
p = toAccessorArray( [ 10.0 ] );
219219
a = toAccessorArray( [ 30.0 ] );
220220
obuf = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
221221
o = toAccessorArray( obuf );
222222

223223
gediff( 3, x, 1, 2, 1, p, 1, 0, 1, a, 1, 0, o, 1, 0 );
224-
expected = [ 10.0, 4.0, 4.0, 30.0, 0.0, 0.0 ];
224+
expected = [ 10.0, 5.0, 4.0, 30.0, 0.0, 0.0 ];
225225
t.deepEqual( obuf, expected, 'returns expected value' );
226226

227227
t.end();

0 commit comments

Comments
 (0)