From 5403261e8213f68633a09fc3e9bc2e6e2cd777b2 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 18 Jul 2022 16:31:14 +0200 Subject: Add support for turning off constructs --- tests/misc_tabs.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'tests/misc_tabs.rs') diff --git a/tests/misc_tabs.rs b/tests/misc_tabs.rs index e82738d..7073c57 100644 --- a/tests/misc_tabs.rs +++ b/tests/misc_tabs.rs @@ -1,14 +1,13 @@ extern crate micromark; use micromark::{micromark, micromark_with_options, Options}; -const DANGER: &Options = &Options { - allow_dangerous_html: true, - allow_dangerous_protocol: true, - default_line_ending: None, -}; - #[test] fn tabs_flow() { + let danger = &Options { + allow_dangerous_html: true, + ..Options::default() + }; + assert_eq!( micromark(" x"), "
x\n
", @@ -118,7 +117,7 @@ fn tabs_flow() { ); assert_eq!( - micromark_with_options("", DANGER), + micromark_with_options("", danger), "", "should support tabs in HTML (if whitespace is allowed)" ); -- cgit