nim-drchaos/tests/ttuples.nim

12 lines
298 B
Nim
Raw Normal View History

2022-08-25 20:18:38 +00:00
import drchaos
proc fuzzMe(s: string, a, b, c: int32) =
if a == 0xdeadbeef'i32 and b == 0x11111111'i32 and c == 0x22222222'i32:
if s.len == 100: doAssert false
func fuzzTarget(data: (string, int32, int32, int32)) =
let (s, a, b, c) = data
fuzzMe(s, a, b, c)
defaultMutator(fuzzTarget)