add commented code

This commit is contained in:
Antonis Geralis 2022-09-05 20:41:08 +03:00
parent 03db755d39
commit c30af6578b
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,9 @@ when isMainModule:
HtmlNode(tag: text, s: "Hello World!"),
])
# Here you could feed `$x` to htmlparser.parseHtml and make sure it doesn't crash.
#var errors: seq[string] = @[]
#let tree = parseHtml($x, "unknown_html_doc", errors)
#doAssert errors.len == 0
doAssert $x != $data
defaultMutator(fuzzTarget)

View File

@ -55,6 +55,7 @@ when isMainModule:
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) =~ x
doAssert x != eye(2, float32)
defaultMutator(fuzzTarget)