Skip to content

Commit

Permalink
Change test function mutability
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo committed May 15, 2024
1 parent 8e77696 commit 9ec833e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/libraries/LiquidityMath.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract LiquidityMathTest is Test {
}

/// @notice Test `flipLiquidityDelta` against the ternary expression
function test_flipLiquidityDelta_fuzz(int128 liquidityDelta, bool flip) public {
function test_flipLiquidityDelta_fuzz(int128 liquidityDelta, bool flip) public pure {
// `liquidityDelta` should never be `type(int128).min`
vm.assume(liquidityDelta != type(int128).min);
assertEq(LiquidityMath.flipLiquidityDelta(liquidityDelta, flip), flip ? -liquidityDelta : liquidityDelta);
Expand Down

0 comments on commit 9ec833e

Please sign in to comment.