Skip to content

Commit

Permalink
🔍 test(root2n): Fix t.deepEqual calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 24, 2020
1 parent 24dba39 commit 11e28e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/src/cartesian/array/iroot2n.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test( "iroot2n" , t => {

let l = randint( 1 , 128 ) ;

t.deepEqual( iroot2n( l ) , [ Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , -Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ] , l ) ;
t.deepEqual( iroot2n( l ) , [ Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , -Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ] , l.toString() ) ;

}

Expand Down
2 changes: 1 addition & 1 deletion test/src/cartesian/array/root2n.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { root2n } = cartesian.array.compile( cartesian.kernel.compile( number ) )

function macro ( t , l ) {

t.deepEqual( root2n( l ) , [ Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ] , l ) ;
t.deepEqual( root2n( l ) , [ Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ] , l.toString() ) ;

}

Expand Down
2 changes: 1 addition & 1 deletion test/src/cartesian/object/iroot2n.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for (var i = 0; i < n; ++i) {

var l = randint( 1 , 128 ) ;

t.deepEqual( iroot2n( l ) , _( Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , -Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ) , l ) ;
t.deepEqual( iroot2n( l ) , _( Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , -Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ) , l.toString() ) ;

}

Expand Down
2 changes: 1 addition & 1 deletion test/src/cartesian/object/root2n.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for (var i = 0; i < n; ++i) {

var l = randint( 1 , 128 ) ;

t.deepEqual( root2n( l ) , _( Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ) , l ) ;
t.deepEqual( root2n( l ) , _( Math.cos( 2 * Math.PI / Math.pow( 2 , l ) ) , Math.sin( 2 * Math.PI / Math.pow( 2 , l ) ) ) , l.toString() ) ;

}

Expand Down

0 comments on commit 11e28e4

Please sign in to comment.