Skip to content

Commit 735605d

Browse files
committed
test: ensure consistent tests
--- 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 3eea4f7 commit 735605d

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

lib/node_modules/@stdlib/math/base/assert/is-negative-integerf/test/test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ tape( 'the function returns `false` if provided `+infinity`', function test( t )
7474
t.end();
7575
});
7676

77+
tape( 'the function returns `false` if provided `+0`', function test( t ) {
78+
t.equal( isNegativeIntegerf( +0.0 ), false, 'returns expected value' );
79+
t.end();
80+
});
81+
82+
tape( 'the function returns `false` if provided `-0`', function test( t ) {
83+
t.equal( isNegativeIntegerf( -0.0 ), false, 'returns expected value' );
84+
t.end();
85+
});
86+
7787
tape( 'WARNING: the function returns `true` if provided `-infinity`', function test( t ) {
7888
t.equal( isNegativeIntegerf( NINF ), true, 'returns expected value' );
7989
t.end();

lib/node_modules/@stdlib/math/base/assert/is-negative-integerf/test/test.native.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ tape( 'the function returns `false` if provided `+infinity`', opts, function tes
8383
t.end();
8484
});
8585

86-
tape( 'WARNING: the function returns `true` if provided `-infinity`', opts, function test( t ) {
87-
t.equal( isNegativeIntegerf( NINF ), true, 'returns expected value' );
88-
t.end();
89-
});
90-
9186
tape( 'the function returns `false` if provided `+0`', opts, function test( t ) {
9287
t.equal( isNegativeIntegerf( +0.0 ), false, 'returns expected value' );
9388
t.end();
@@ -97,3 +92,8 @@ tape( 'the function returns `false` if provided `-0`', opts, function test( t )
9792
t.equal( isNegativeIntegerf( -0.0 ), false, 'returns expected value' );
9893
t.end();
9994
});
95+
96+
tape( 'WARNING: the function returns `true` if provided `-infinity`', opts, function test( t ) {
97+
t.equal( isNegativeIntegerf( NINF ), true, 'returns expected value' );
98+
t.end();
99+
});

0 commit comments

Comments
 (0)