Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Sep 6, 2024
1 parent 19103d0 commit 8970b25
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/unit/VotingPowerExchange.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,15 @@ contract VotingPowerExchangeUnitTest is Test {
// - currentBurnedAmount: The amount of tokens already burned
// - expectedIncrease: The expected increase in voting power
// - testCaseNumber: The number of the test case for easy identification
function runTestCase(uint256 amount, uint256 currentBurnedAmount, uint256 expectedIncrease, uint256 testCaseNumber) internal view {
function runTestCase(uint256 amount, uint256 currentBurnedAmount, uint256 expectedIncrease, uint256 testCaseNumber)
internal
view
{
uint256 actualIncrease = votingPowerExchange.calculateIncrementedVotingPower(amount, currentBurnedAmount);
assertEq(actualIncrease, expectedIncrease, string(abi.encodePacked("Test case ", Strings.toString(testCaseNumber), " failed")));
assertEq(
actualIncrease,
expectedIncrease,
string(abi.encodePacked("Test case ", Strings.toString(testCaseNumber), " failed"))
);
}
}

0 comments on commit 8970b25

Please sign in to comment.