From 1fd94f512834aa7bd70f22a60229ce01edfc754e Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Fri, 7 Oct 2022 10:52:20 -0700 Subject: Update fuzzer to support new options format, add mdast fuzzing Closes GH-9. --- fuzz/fuzz_targets/micromark.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fuzz') 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()); } }); -- cgit