add notes

This commit is contained in:
Antonis Geralis 2022-09-05 20:36:51 +03:00
parent 784e88319f
commit 03db755d39
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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)