We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where possible, change the tests from hardcoded tests, to fuzztests with random variables over ranges. For example see: https://book.getfoundry.sh/forge/fuzz-testing
ViaIR=true
--via-ir
getRandomMultiplesAndCeilings
The text was updated successfully, but these errors were encountered:
// Assume requirements on contract initialisation by project lead are valid. // vm.assume(projectLeadFracDenominator > 0); // vm.assume(firstCeiling > 0); // vm.assume(additionalWaitPeriod > 0); // vm.assume(raisePeriod > 0); // vm.assume(investmentTarget > 0); // vm.assume(firstCeiling < secondCeiling); // vm.assume(secondCeiling < thirdCeiling); // vm.assume(investmentTarget <= thirdCeiling); // vm.assume(projectLeadFracNumerator <= projectLeadFracDenominator); // vm.assume(firstMultiple > 1); // vm.assume(secondMultiple > 1); // vm.assume(thirdMultiple > 1); // Assume an investor tries to invest at least 1 wei. // vm.assume(firstInvestmentAmount > 0); // Store multiples in an array to assert they do not lead to an overflow when computing the investor return. // uint8[] memory multiples = new uint8[](3); // multiples[0] = firstMultiple; // multiples[1] = secondMultiple; // multiples[2] = thirdMultiple; // vm.assume(!_testHelper.sumOfNrsThrowsOverFlow({ numbers: multiples })); // vm.assume( // !_testHelper.yieldsOverflowMultiply({ // a: firstMultiple + secondMultiple + thirdMultiple, // b: firstInvestmentAmount // }) // );
Sorry, something went wrong.
No branches or pull requests
Where possible, change the tests from hardcoded tests, to fuzztests with random variables over ranges. For example see: https://book.getfoundry.sh/forge/fuzz-testing
ViaIR=true
in the json or the--via-ir
flag in the CLI via precommit.getRandomMultiplesAndCeilings
into a separate file and import the constants from somewhere. #25The text was updated successfully, but these errors were encountered: