BlocSoc-iitr / HorseRiders

A complex math and Fast Fourier Transform Library for Huff and EVM Assembly
MIT License
8 stars 9 forks source link

🛠️ FIX : Improve Test Coverage in Complex.t.sol #2

Closed 0xpanicError closed 9 months ago

0xpanicError commented 9 months ago

🛠️ [FIX]

Description: Complex Math lib in Huff do not have 100% test coverage. The functions implemented that are not tested are:

function p_atan2(int256 , int256) returns (int256)
function atan1to1(int256 ) returns (int256)
function ln(int256 , int256) returns (int256)
function sqrt(int256 , int256) returns (int256)
function expZ(int256 , int256) returns (int256 ,int256)
function pow(int256 , int256 , int256) returns (int256 ,int256)

Additionally no functions are fuzz tested.

Scope: Test file for Complex Math functions: test/Complex.t.sol

Objective: 100% test coverage (both unit and fuzz testing)

blueh4mster commented 9 months ago

taking this up from today.