Skip to content

Commit 888e071

Browse files
committed
test: update assertion messages
1 parent 2514e0a commit 888e071

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

lib/node_modules/@stdlib/blas/base/dswap/test/test.dswap.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tape( 'main export is a function', function test( t ) {
3535
});
3636

3737
tape( 'the function has an arity of 5', function test( t ) {
38-
t.strictEqual( dswap.length, 5, 'arity of 5' );
38+
t.strictEqual( dswap.length, 5, 'returns expected value' );
3939
t.end();
4040
});
4141

@@ -158,7 +158,7 @@ tape( 'the function returns a reference to the second input array', function tes
158158

159159
out = dswap( x.length, x, 1, y, 1 );
160160

161-
t.strictEqual( out, y, 'same reference' );
161+
t.strictEqual( out, y, 'returns expected value' );
162162
t.end();
163163
});
164164

@@ -178,12 +178,12 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
178178
dcopy( y.length, y, 1, ye, 1 );
179179

180180
dswap( -1, x, 1, y, 1 );
181-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
182-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
181+
t.deepEqual( x, xe, 'returns expected value' );
182+
t.deepEqual( y, ye, 'returns expected value' );
183183

184184
dswap( 0, x, 1, y, 1 );
185-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
186-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
185+
t.deepEqual( x, xe, 'returns expected value' );
186+
t.deepEqual( y, ye, 'returns expected value' );
187187

188188
t.end();
189189
});

lib/node_modules/@stdlib/blas/base/dswap/test/test.dswap.native.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'main export is a function', opts, function test( t ) {
4444
});
4545

4646
tape( 'the function has an arity of 5', opts, function test( t ) {
47-
t.strictEqual( dswap.length, 5, 'arity of 5' );
47+
t.strictEqual( dswap.length, 5, 'returns expected value' );
4848
t.end();
4949
});
5050

@@ -167,7 +167,7 @@ tape( 'the function returns a reference to the second input array', opts, functi
167167

168168
out = dswap( x.length, x, 1, y, 1 );
169169

170-
t.strictEqual( out, y, 'same reference' );
170+
t.strictEqual( out, y, 'returns expected value' );
171171
t.end();
172172
});
173173

@@ -187,12 +187,12 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
187187
dcopy( y.length, y, 1, ye, 1 );
188188

189189
dswap( -1, x, 1, y, 1 );
190-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
191-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
190+
t.deepEqual( x, xe, 'returns expected value' );
191+
t.deepEqual( y, ye, 'returns expected value' );
192192

193193
dswap( 0, x, 1, y, 1 );
194-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
195-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
194+
t.deepEqual( x, xe, 'returns expected value' );
195+
t.deepEqual( y, ye, 'returns expected value' );
196196

197197
t.end();
198198
});

lib/node_modules/@stdlib/blas/base/dswap/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tape( 'if a native implementation is available, the main export is the native im
5151
'@stdlib/utils/try-require': tryRequire
5252
});
5353

54-
t.strictEqual( dswap, mock, 'returns native implementation' );
54+
t.strictEqual( dswap, mock, 'returns expected value' );
5555
t.end();
5656

5757
function tryRequire() {
@@ -73,7 +73,7 @@ tape( 'if a native implementation is not available, the main export is a JavaScr
7373
'@stdlib/utils/try-require': tryRequire
7474
});
7575

76-
t.strictEqual( dswap, main, 'returns JavaScript implementation' );
76+
t.strictEqual( dswap, main, 'returns expected value' );
7777
t.end();
7878

7979
function tryRequire() {

lib/node_modules/@stdlib/blas/base/dswap/test/test.ndarray.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tape( 'main export is a function', function test( t ) {
3535
});
3636

3737
tape( 'the function has an arity of 7', function test( t ) {
38-
t.strictEqual( dswap.length, 7, 'arity of 7' );
38+
t.strictEqual( dswap.length, 7, 'returns expected value' );
3939
t.end();
4040
});
4141

@@ -224,7 +224,7 @@ tape( 'the function returns a reference to the second input array', function tes
224224

225225
out = dswap( x.length, x, 1, 0, y, 1, 0 );
226226

227-
t.strictEqual( out, y, 'same reference' );
227+
t.strictEqual( out, y, 'returns expected value' );
228228
t.end();
229229
});
230230

@@ -244,12 +244,12 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
244244
dcopy( y.length, y, 1, 0, ye, 1, 0 );
245245

246246
dswap( -1, x, 1, 0, y, 1, 0 );
247-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
248-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
247+
t.deepEqual( x, xe, 'returns expected value' );
248+
t.deepEqual( y, ye, 'returns expected value' );
249249

250250
dswap( 0, x, 1, 0, y, 1, 0 );
251-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
252-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
251+
t.deepEqual( x, xe, 'returns expected value' );
252+
t.deepEqual( y, ye, 'returns expected value' );
253253

254254
t.end();
255255
});

lib/node_modules/@stdlib/blas/base/dswap/test/test.ndarray.native.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'main export is a function', opts, function test( t ) {
4444
});
4545

4646
tape( 'the function has an arity of 7', opts, function test( t ) {
47-
t.strictEqual( dswap.length, 7, 'arity of 7' );
47+
t.strictEqual( dswap.length, 7, 'returns expected value' );
4848
t.end();
4949
});
5050

@@ -233,7 +233,7 @@ tape( 'the function returns a reference to the second input array', opts, functi
233233

234234
out = dswap( x.length, x, 1, 0, y, 1, 0 );
235235

236-
t.strictEqual( out, y, 'same reference' );
236+
t.strictEqual( out, y, 'returns expected value' );
237237
t.end();
238238
});
239239

@@ -253,12 +253,12 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
253253
dcopy( y.length, y, 1, 0, ye, 1, 0 );
254254

255255
dswap( -1, x, 1, 0, y, 1, 0 );
256-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
257-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
256+
t.deepEqual( x, xe, 'returns expected value' );
257+
t.deepEqual( y, ye, 'returns expected value' );
258258

259259
dswap( 0, x, 1, 0, y, 1, 0 );
260-
t.deepEqual( x, xe, 'leaves `x` unchanged' );
261-
t.deepEqual( y, ye, 'leaves `y` unchanged' );
260+
t.deepEqual( x, xe, 'returns expected value' );
261+
t.deepEqual( y, ye, 'returns expected value' );
262262

263263
t.end();
264264
});

0 commit comments

Comments
 (0)