mirror of
https://github.com/status-im/nim-drchaos.git
synced 2025-02-22 23:58:16 +00:00
15 lines
346 B
Nim
15 lines
346 B
Nim
# Runs infinitely. Run with a time limit and make sure it doesn't crash.
|
|
import drchaos
|
|
|
|
type
|
|
Color = enum
|
|
Red, Green, Blue
|
|
OtherColor = enum
|
|
Cyan, Magenta=2, Yellow=4, Black=8
|
|
|
|
func fuzzTarget(x: Color) =
|
|
doAssert x.ord in low(Color).ord..high(Color).ord
|
|
#doAssert x in [Cyan, Magenta, Yellow, Black]
|
|
|
|
defaultMutator(fuzzTarget)
|