Update forge and change visibility in fuzz tests (#5103)
Co-authored-by: cairo <cairoeth@protonmail.com>
This commit is contained in:
@ -9,19 +9,19 @@ import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
|
||||
contract StringsTest is Test {
|
||||
using Strings for *;
|
||||
|
||||
function testParse(uint256 value) external {
|
||||
function testParse(uint256 value) external pure {
|
||||
assertEq(value, value.toString().parseUint());
|
||||
}
|
||||
|
||||
function testParseSigned(int256 value) external {
|
||||
function testParseSigned(int256 value) external pure {
|
||||
assertEq(value, value.toStringSigned().parseInt());
|
||||
}
|
||||
|
||||
function testParseHex(uint256 value) external {
|
||||
function testParseHex(uint256 value) external pure {
|
||||
assertEq(value, value.toHexString().parseHexUint());
|
||||
}
|
||||
|
||||
function testParseChecksumHex(address value) external {
|
||||
function testParseChecksumHex(address value) external pure {
|
||||
assertEq(value, value.toChecksumHexString().parseAddress());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user