@@ -4176,8 +4176,8 @@ forgetest_init!(should_fuzz_literals, |prj, cmd| {
4176
4176
function checkWord(bytes32 v) external pure { assert(v != MAGIC_WORD); }
4177
4177
function checkNumber(uint256 v) external pure { assert(v != MAGIC_NUMBER); }
4178
4178
function checkInteger(int32 v) external pure { assert(v != MAGIC_INT); }
4179
- function checkBytes(bytes memory v) external pure { assert(keccak256(v) != keccak256(MAGIC_BYTES)); }
4180
4179
function checkString(string memory v) external pure { assert(keccak256(abi.encodePacked(v)) != keccak256(abi.encodePacked(MAGIC_STRING))); }
4180
+ function checkBytesFromHex(bytes memory v) external pure { assert(keccak256(v) != keccak256(MAGIC_BYTES)); }
4181
4181
function checkBytesFromString(bytes memory v) external pure { assert(keccak256(v) != keccak256(abi.encodePacked(MAGIC_STRING))); }
4182
4182
}
4183
4183
"# ,
@@ -4197,9 +4197,9 @@ forgetest_init!(should_fuzz_literals, |prj, cmd| {
4197
4197
function testFuzz_Number(uint256 v) public view { magic.checkNumber(v); }
4198
4198
function testFuzz_Integer(int32 v) public view { magic.checkInteger(v); }
4199
4199
function testFuzz_Word(bytes32 v) public view { magic.checkWord(v); }
4200
- function testFuzz_BytesFromHex(bytes memory v) public view { magic.checkBytes(v); }
4201
- function testFuzz_BytesFromString(bytes memory v) public view { magic.checkBytesFromString(v); }
4202
4200
function testFuzz_String(string memory v) public view { magic.checkString(v); }
4201
+ function testFuzz_BytesFromHex(bytes memory v) public view { magic.checkBytesFromHex(v); }
4202
+ function testFuzz_BytesFromString(bytes memory v) public view { magic.checkBytesFromString(v); }
4203
4203
}
4204
4204
"# ,
4205
4205
) ;
@@ -4231,7 +4231,7 @@ Encountered a total of 1 failing tests, 0 tests succeeded
4231
4231
expected_runs: u32 | {
4232
4232
prj. clear_cache_dir( ) ;
4233
4233
4234
- // the fuzzer is UNABLE to find a breaking input when NOT seeding from the AST
4234
+ // the fuzzer is UNABLE to find a breaking input (fast) when NOT seeding from the AST
4235
4235
prj. update_config( |config| {
4236
4236
config. fuzz. runs = 100 ;
4237
4237
config. fuzz. dictionary. max_fuzz_dictionary_literals = 0 ;
@@ -4253,7 +4253,7 @@ Encountered a total of 1 failing tests, 0 tests succeeded
4253
4253
4254
4254
test_literal( 100 , "testFuzz_Addr" , "address" , "0x6B175474E89094C44Da98b954EedeAC495271d0F" , 28 ) ;
4255
4255
test_literal( 200 , "testFuzz_Number" , "uint256" , "1122334455 [1.122e9]" , 5 ) ;
4256
- // test_literal(300, "testFuzz_Integer", "int32", "-777", 4 );
4256
+ test_literal( 300 , "testFuzz_Integer" , "int32" , "-777" , 0 ) ;
4257
4257
test_literal(
4258
4258
400 ,
4259
4259
"testFuzz_Word" ,
0 commit comments