diff options
author | Christian Murphy <christian.murphy.42@gmail.com> | 2022-10-07 10:52:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 19:52:20 +0200 |
commit | 1fd94f512834aa7bd70f22a60229ce01edfc754e (patch) | |
tree | 8f13d9aa6779d19b6e633b9c84a9678b1082f25a /fuzz/fuzz_targets/micromark.rs | |
parent | 2d7b34983699a0d140fb322b494f0572bf157fe1 (diff) | |
download | markdown-rs-1fd94f512834aa7bd70f22a60229ce01edfc754e.tar.gz markdown-rs-1fd94f512834aa7bd70f22a60229ce01edfc754e.tar.bz2 markdown-rs-1fd94f512834aa7bd70f22a60229ce01edfc754e.zip |
Update fuzzer to support new options format, add mdast fuzzing
Closes GH-9.
Diffstat (limited to '')
-rw-r--r-- | fuzz/fuzz_targets/micromark.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fuzz/fuzz_targets/micromark.rs b/fuzz/fuzz_targets/micromark.rs index f4d2927..2137e0e 100644 --- a/fuzz/fuzz_targets/micromark.rs +++ b/fuzz/fuzz_targets/micromark.rs @@ -7,10 +7,9 @@ fuzz_target!(|data: &[u8]| { let _ = micromark::micromark(s); let _ = micromark::micromark_with_options( s, - µmark::Options { - constructs: micromark::Constructs::gfm(), - ..micromark::Options::default() - }, + µmark::Options::gfm() ); + let _ = micromark::micromark_to_mdast(s, µmark::ParseOptions::default()); + let _ = micromark::micromark_to_mdast(s, µmark::ParseOptions::gfm()); } }); |