BlocSoc-iitr / HorseRiders

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

🐛 BUG : Test Failing #1

Closed 0xpanicError closed 9 months ago

0xpanicError commented 9 months ago

🐛 [BUG]

Description: The following test cases are failing when running forge test --via-ir in root directory.

[FAIL. Reason: EvmError: Revert] testAddZ() (gas: 7664)
[FAIL. Reason: EvmError: Revert] testCalcR() (gas: 7671)
[FAIL. Reason: EvmError: Revert] testDivZ() (gas: 7814)
[FAIL. Reason: EvmError: Revert] testFromPolar() (gas: 7426)
[FAIL. Reason: EvmError: Revert] testMulZ() (gas: 7685)
[FAIL. Reason: EvmError: Revert] testSubZ() (gas: 7801)
[FAIL. Reason: EvmError: Revert] testToPolar() (gas: 7564)

Scope: The test file exists in test/Complex.t.sol The function called in are described by a wrapper: src/ComplexHuff/WRAPPER.huff and implemented in: src/ComplexHuff/Complex.huff

Objective: Fix the issue and make the test cases pass.

0xpanicError commented 9 months ago

@blueh4mster fixed bugs such that all tests (except testFromPolar ) is passing.