Skip to content

Commit f680e57

Browse files
committed
test: fix test fixtures and continue conditions
--- 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 00b30fc commit f680e57

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

lib/node_modules/@stdlib/math/base/special/cscd/test/fixtures/julia/negative.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/cscd/test/fixtures/julia/positive.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/cscd/test/fixtures/julia/runner.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ file = @__FILE__;
6262
dir = dirname( file );
6363

6464
# Generate fixture data for negative values:
65-
x = range( -2*pi, stop = 0.0, length = 1000 );
65+
x = range( -360.0, stop = 0.0, length = 1000 );
6666
gen( x, "negative.json" );
6767

6868
# Generate fixture data for positive values:
69-
x = range( 0.0, stop = 2.0*pi, length = 1000 );
69+
x = range( 0.0, stop = 360.0, length = 1000 );
7070
gen( x, "positive.json" );

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ tape( 'the function computes the cosecant in degrees (negative values)', functio
6363
y = cscd( x[i] );
6464
if ( expected[ i ] === null ) {
6565
t.equal( y, PINF, 'x: '+x[i]+'. E: '+expected[i] );
66-
break;
66+
continue;
6767
}
6868
if ( y === expected[ i ] ) {
6969
t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] );
7070
} else {
7171
delta = abs( y - expected[i] );
72-
tol = 1.4 * EPS * abs( expected[i] );
72+
tol = 1.3 * EPS * abs( expected[i] );
7373
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' );
7474
}
7575
}
@@ -91,13 +91,13 @@ tape( 'the function computes the cosecant in degrees (positive values)', functio
9191
y = cscd( x[i] );
9292
if ( expected[ i ] === null ) {
9393
t.equal( y, PINF, 'x: '+x[i]+'. E: '+expected[i] );
94-
break;
94+
continue;
9595
}
9696
if ( y === expected[ i ] ) {
9797
t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] );
9898
} else {
9999
delta = abs( y - expected[i] );
100-
tol = 1.4 * EPS * abs( expected[i] );
100+
tol = 1.3 * EPS * abs( expected[i] );
101101
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' );
102102
}
103103
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ tape( 'the function computes the cosecant in degrees (negative values)', opts, f
7272
y = cscd( x[i] );
7373
if ( expected[ i ] === null ) {
7474
t.equal( y, PINF, 'x: '+x[i]+'. E: '+expected[i] );
75-
break;
75+
continue;
7676
}
7777
if ( y === expected[ i ] ) {
7878
t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] );
@@ -100,7 +100,7 @@ tape.skip( 'the function computes the cosecant in degrees (positive values)', op
100100
y = cscd( x[i] );
101101
if ( expected[ i ] === null ) {
102102
t.equal( y, PINF, 'x: '+x[i]+'. E: '+expected[i] );
103-
break;
103+
continue;
104104
}
105105
if ( y === expected[ i ] ) {
106106
t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] );

0 commit comments

Comments
 (0)