Skip to content

Commit

Permalink
test(tree): dont use is in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Aug 28, 2024
1 parent 8fd9d8c commit a3f8ee8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ contract IsPercentagesSum100_Integration_Test is MerkleCampaign_Integration_Test
_;
}

modifier whenPercentagesSumIsNot100Pct() {
modifier whenPercentagesSumNot100Pct() {
_;
}

function test_WhenPercentagesSumLessThan100Pct()
external
view
whenPercentagesSumNotOverflow
whenPercentagesSumIsNot100Pct
whenPercentagesSumNot100Pct
{
MerkleLT.TrancheWithPercentage[] memory tranchesWithPercentages = defaults.tranchesWithPercentages();
tranchesWithPercentages[0].unlockPercentage = ud2x18(0.05e18);
Expand All @@ -41,7 +41,7 @@ contract IsPercentagesSum100_Integration_Test is MerkleCampaign_Integration_Test
external
view
whenPercentagesSumNotOverflow
whenPercentagesSumIsNot100Pct
whenPercentagesSumNot100Pct
{
MerkleLT.TrancheWithPercentage[] memory tranchesWithPercentages = defaults.tranchesWithPercentages();
tranchesWithPercentages[0].unlockPercentage = ud2x18(0.5e18);
Expand All @@ -50,7 +50,7 @@ contract IsPercentagesSum100_Integration_Test is MerkleCampaign_Integration_Test
assertFalse(merkleFactory.isPercentagesSum100(tranchesWithPercentages), "isPercentagesSum100");
}

function test_WhenPercentagesSumIs100Pct() external view whenPercentagesSumNotOverflow {
function test_WhenPercentagesSum100Pct() external view whenPercentagesSumNotOverflow {
assertTrue(merkleFactory.isPercentagesSum100(defaults.tranchesWithPercentages()), "isPercentagesSum100");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ IsPercentagesSum100_Integration_Test
├── when percentages sum overflows
│ └── it should revert
└── when percentages sum not overflow
├── when percentages sum is not 100 pct
├── when percentages sum not 100 pct
│ ├── when percentages sum less than 100 pct
│ │ └── it should return false
│ └── when percentages sum greater than 100 pct
│ └── it should return false
└── when percentages sum is 100 pct
└── when percentages sum 100 pct
└── it should return true

0 comments on commit a3f8ee8

Please sign in to comment.