nim-eth/tests/fuzzing/rlp/fuzz.nim

13 lines
259 B
Nim
Raw Normal View History

2019-09-26 16:27:23 +00:00
import chronicles, eth/rlp, ../fuzz_helpers
# TODO: have a default init as such
init:
discard
test:
try:
var rlp = rlpFromBytes(payload.toRange)
discard rlp.inspect()
except RlpError:
debug "Inspect failed", err = getCurrentExceptionMsg()