Skip to content

Commit

Permalink
Merge branch 'BlocSoc-iitr:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
blueh4mster authored Dec 15, 2023
2 parents cbcec51 + 109ada5 commit fec536a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/Complex.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ contract ComplexTest is Test {
int256 r = complex.atan1to1(9 * 1e17);
assertEq((r * 100) / scale, 73);
}

function testAtan2() public {
int256 r = complex.p_atan2(4 * scale, 3 * scale);
assertEq((r * 100) / scale, 6124);
}

function testAtan1to1() public {
int256 r = complex.atan1to1(9 * 1e17);
assertEq((r * 100) / scale, 73);
}
}

interface WRAPPER {
Expand Down

0 comments on commit fec536a

Please sign in to comment.