From b00fafbdcba39e7e17144b07834702629b891062 Mon Sep 17 00:00:00 2001
From: Titus Wormer
\"\"\n_boolean zoop:33=zoop:33 />
", - // "should support attributes on tags" - // ); + assert_eq!( + micromark_with_options( + "", + DANGER + ), + "", + "should support attributes on tags" + ); assert_eq!( micromark_with_options("Foo< a><\nfoo><bar/ >\n<foo bar=baz\nbim!bop />
", - // "should not support nonconforming whitespace" - // ); + assert_eq!( + micromark_with_options("< a><\nfoo>< a><\nfoo><bar/ >\n<foo bar=baz\nbim!bop />
", + "should not support nonconforming whitespace" + ); assert_eq!( micromark_with_options("", DANGER), @@ -92,12 +89,11 @@ fn html_text() { "should not support closing tags w/ attributes" ); - // To do: line endings. - // assert_eq!( - // micromark_with_options("foo ", DANGER), - // "foo
", - // "should support comments" - // ); + assert_eq!( + micromark_with_options("foo ", DANGER), + "foo
", + "should support comments" + ); assert_eq!( micromark_with_options("foo ", DANGER), @@ -384,12 +380,11 @@ fn html_text() { "should not support eof in unquoted attribute value" ); - // To do: line endings. - // assert_eq!( - // micromark_with_options("foo ", DANGER), - // "", - // "should support an eol before an attribute value" - // ); + assert_eq!( + micromark_with_options("foo ", DANGER), + "", + "should support an eol before an attribute value" + ); assert_eq!( micromark_with_options("a
", - // "should support an EOL in a declaration" - // ); - // To do: line endings. - // assert_eq!( - // micromark_with_options("a ", DANGER), - // "a
", - // "should support an EOL in cdata" - // ); + assert_eq!( + micromark_with_options("a ", DANGER), + "a
", + "should support an EOL in a declaration" + ); + assert_eq!( + micromark_with_options("a ", DANGER), + "a
", + "should support an EOL in cdata" + ); - // To do: line endings. - // // Note: cmjs parses this differently. - // // See:a \n?>
", + "should support an EOL in an instruction" + ); + + // To do: extensions. // assert_eq!( - // micromark_with_options("a \n?>", DANGER), - // "a \n?>
", - // "should support an EOL in an instruction" + // micromark_with_options("aa <x>
", + // "should support turning off html (text)" // ); - - // // To do: extensions. - // // assert_eq!( - // // micromark_with_options("aa <x>
", - // // "should support turning off html (text)" - // // ); } -- cgit