Skip to content

Commit 58eaa82

Browse files
committed
test: fix test messages
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 14c56ba commit 58eaa82

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/math/base/special/fibonaccif/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tape( 'if provided a negative number, the function returns `NaN`', function test
4343
var v;
4444
var i;
4545

46-
t.strictEqual( isnanf( fibonaccif( -3.14 ) ), true, 'returns NaN' );
46+
t.strictEqual( isnanf( fibonaccif( -3.14 ) ), true, 'returns expected value' );
4747

4848
for ( i = -1; i > -100; i-- ) {
4949
v = fibonaccif( i );
@@ -54,19 +54,19 @@ tape( 'if provided a negative number, the function returns `NaN`', function test
5454

5555
tape( 'if provided positive infinity, the function returns `NaN`', function test( t ) {
5656
var v = fibonaccif( PINF );
57-
t.strictEqual( isnanf( v ), true, 'returns NaN when provided +infinity' );
57+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
5858
t.end();
5959
});
6060

6161
tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) {
6262
var v = fibonaccif( NaN );
63-
t.strictEqual( isnanf( v ), true, 'returns NaN when provided a NaN' );
63+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
6464
t.end();
6565
});
6666

6767
tape( 'if provided a non-integer, the function returns `NaN`', function test( t ) {
6868
var v = fibonaccif( 3.14 );
69-
t.strictEqual( isnanf( v ), true, 'returns NaN' );
69+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
7070
t.end();
7171
});
7272

@@ -75,7 +75,7 @@ tape( 'the function returns the nth Fibonacci number', function test( t ) {
7575
var i;
7676
for ( i = 0; i < 37; i++ ) {
7777
v = fibonaccif( i );
78-
t.strictEqual( v, FIBONACCI[ i ], 'returns the '+i+'th Fibonacci number' );
78+
t.strictEqual( v, FIBONACCI[ i ], 'returns expected value' );
7979
}
8080
t.end();
8181
});
@@ -85,7 +85,7 @@ tape( 'if provided nonnegative integers greater than `36`, the function returns
8585
var v;
8686
for ( i = 37; i < 500; i++ ) {
8787
v = fibonaccif( i );
88-
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
88+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
8989
}
9090
t.end();
9191
});

lib/node_modules/@stdlib/math/base/special/fibonaccif/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tape( 'if provided a negative number, the function returns `NaN`', opts, functio
5353

5454
for ( i = -1; i > -100; i-- ) {
5555
v = fibonaccif( i );
56-
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
56+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
5757
}
5858
t.end();
5959
});
@@ -63,7 +63,7 @@ tape( 'the function returns the nth Fibonacci number', opts, function test( t )
6363
var i;
6464
for ( i = 0; i < 37; i++ ) {
6565
v = fibonaccif( i );
66-
t.strictEqual( v, FIBONACCI[ i ], 'returns the '+i+'th Fibonacci number' );
66+
t.strictEqual( v, FIBONACCI[ i ], 'returns expected value' );
6767
}
6868
t.end();
6969
});
@@ -73,7 +73,7 @@ tape( 'if provided nonnegative integers greater than `36`, the function returns
7373
var v;
7474
for ( i = 37; i < 500; i++ ) {
7575
v = fibonaccif( i );
76-
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
76+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
7777
}
7878
t.end();
7979
});

0 commit comments

Comments
 (0)