Example
withdrawalAmount that adhere to the bounds set by the vm.assume() constraints.
Use
vm.assume() to filter out invalid inputs that would cause the test to fail for reasons unrelated to your assertion logic.Best Practices
Constrain inputs to realistic ranges withvm.assume(). Include valid boundary cases and combinations of inputs that affect the policy.
Running Fuzz Tests
Fuzz tests run automatically withpcl test:
foundry.toml:
- Testing Assertions - Basic testing guide
- CI/CD Integration - Automate your tests
- Forge Fuzz Testing Documentation

