mirror of
https://github.com/status-im/nim-drchaos.git
synced 2025-02-19 22:28:15 +00:00
add notes
This commit is contained in:
parent
784e88319f
commit
03db755d39
@ -53,9 +53,11 @@ when isMainModule:
|
||||
else: return a.kids == b.kids
|
||||
|
||||
func fuzzTarget(x: HtmlNode) =
|
||||
when defined(dumpFuzzInput): debugEcho(x)
|
||||
let data = HtmlNode(tag: head, kids: @[
|
||||
HtmlNode(tag: text, s: "Hello World!"),
|
||||
])
|
||||
# Here you could feed `$x` to htmlparser.parseHtml and make sure it doesn't crash.
|
||||
doAssert $x != $data
|
||||
|
||||
defaultMutator(fuzzTarget)
|
||||
|
@ -53,6 +53,8 @@ when isMainModule:
|
||||
zeros(M, N, float32)
|
||||
|
||||
func fuzzTarget(x: Matrix32[2, 2]) =
|
||||
when defined(dumpFuzzInput): debugEcho(x)
|
||||
# Here you could multiply `x` with the identity matrix and make sure it doesn't change.
|
||||
doAssert x != eye(2, float32)
|
||||
|
||||
defaultMutator(fuzzTarget)
|
||||
|
Loading…
x
Reference in New Issue
Block a user