Skip to content

Commit

Permalink
Migrate SwapMath tests to foundry (Uniswap#363)
Browse files Browse the repository at this point in the history
* write SwapMath Tests

* write gas snapshots tests

* delete SwapMath hardhat implementation

* eliminate SwapMathTest + add gas snapshots

* delete js snapshots

* migrate echidna test

* forge fmt

* test titles

* remove console import

---------

Co-authored-by: Job Mwitah <[email protected]>
Co-authored-by: Mwitah <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2023
1 parent d5fa3b6 commit 60de80a
Show file tree
Hide file tree
Showing 13 changed files with 280 additions and 421 deletions.
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_oneForZero_exactInCapped.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2222
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_oneForZero_exactInPartial.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3050
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_oneForZero_exactOutCapped.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1980
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_oneForZero_exactOutPartial.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3050
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_zeroForOne_exactInCapped.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2211
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_zeroForOne_exactInPartial.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3201
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_zeroForOne_exactOutCapped.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1969
1 change: 1 addition & 0 deletions .forge-snapshots/SwapMath_zeroForOne_exactOutPartial.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3201
52 changes: 0 additions & 52 deletions contracts/test/SwapMathEchidnaTest.sol

This file was deleted.

28 changes: 0 additions & 28 deletions contracts/test/SwapMathTest.sol

This file was deleted.

Loading

0 comments on commit 60de80a

Please sign in to comment.