Skip to content

Commit

Permalink
Make flipTick test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo committed May 18, 2024
1 parent aa029f2 commit ab3c411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/libraries/TickBitmap.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ contract TickBitmapTest is Test, GasSnapshot {
bool initialized = isInitialized(tick, tickSpacing);
bitmap.flipTick(tick, tickSpacing);
assertEq(isInitialized(tick, tickSpacing), !initialized);
// flip again
bitmap.flipTick(tick, tickSpacing);
assertEq(isInitialized(tick, tickSpacing), initialized);
}
}

Expand Down

0 comments on commit ab3c411

Please sign in to comment.