Skip to content

Commit

Permalink
test cases checked
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhijitRaut04 committed Oct 21, 2024
1 parent 020951d commit cd658c7
Show file tree
Hide file tree
Showing 17 changed files with 32,122 additions and 17 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var pkg = require( './../package.json' ).name;

var sec = tryRequire( resolve( __dirname, './../lib/native.js' ) );
var opts = {
'skip': ( csc instanceof Error )
'skip': ( sec instanceof Error )
};


Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ julia> gen( x, \"data.json\" );
"""
function gen( domain, name )
x = collect( domain );
y = csc.( x );
y = sec.( x );

# Store data to be written to file as a collection:
data = Dict([
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/math/base/special/sec/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var tinyPositive = require( '@stdlib/math/base/special/sec/test/fixtures/julia/t

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.true( typeof csc, 'function', 'main export is a function' );
t.true( typeof sec, 'function', 'main export is a function' );
t.end();
});

Expand All @@ -68,6 +68,7 @@ tape( 'the function computes the secant (huge negative values)', function test(

for (i = 0; i < x.length; i++) {
y = sec(x[i]);
console.log(y)
if (y === expected[i]) {
t.equal(y, expected[i], 'x: ' + x[i] + '. E: ' + expected[i]);
} else {
Expand Down

0 comments on commit cd658c7

Please sign in to comment.