Skip to content

Commit c80cc2d

Browse files
committed
test: update test.js
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent b637ac8 commit c80cc2d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib/math/base/special/erf/test

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ tape( 'the function evaluates the error function for `x` on the interval `[-0.8,
154154
x = smallNegative.x;
155155
for ( i = 0; i < x.length; i++ ) {
156156
y = erf( x[i] );
157-
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
157+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
158158
}
159159
t.end();
160160
});
@@ -169,7 +169,7 @@ tape( 'the function evaluates the error function for `x` on the interval `[0.8,1
169169
x = smallPositive.x;
170170
for ( i = 0; i < x.length; i++ ) {
171171
y = erf( x[i] );
172-
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
172+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
173173
}
174174
t.end();
175175
});
@@ -184,7 +184,7 @@ tape( 'the function evaluates the error function for `x` on the interval `[-0.8,
184184
x = smaller.x;
185185
for ( i = 0; i < x.length; i++ ) {
186186
y = erf( x[i] );
187-
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
187+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
188188
}
189189
t.end();
190190
});
@@ -199,7 +199,7 @@ tape( 'the function evaluates the error function for `x` on the interval `[-1e-3
199199
x = tinyNegative.x;
200200
for ( i = 0; i < x.length; i++ ) {
201201
y = erf( x[i] );
202-
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
202+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
203203
}
204204
t.end();
205205
});
@@ -214,7 +214,7 @@ tape( 'the function evaluates the error function for `x` on the interval `[1e-30
214214
x = tinyPositive.x;
215215
for ( i = 0; i < x.length; i++ ) {
216216
y = erf( x[i] );
217-
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
217+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
218218
}
219219
t.end();
220220
});
@@ -229,7 +229,7 @@ tape( 'the function evaluates the error function for subnormal `x`', function te
229229
x = subnormal.x;
230230
for ( i = 0; i < x.length; i++ ) {
231231
y = erf( x[i] );
232-
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
232+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
233233
}
234234
t.end();
235235
});

0 commit comments

Comments
 (0)