diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-14 14:23:58 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-14 14:23:58 +0200 |
commit | db9ecdd93eb6ff8bb9b7039743b4ef3cbbcf2ab1 (patch) | |
tree | 74b7f01384e12fbc982638a74644ef445109a8c2 /src | |
parent | c16ce7361d4d976deaad42e783b7eae5d38ae763 (diff) | |
download | markdown-rs-db9ecdd93eb6ff8bb9b7039743b4ef3cbbcf2ab1.tar.gz markdown-rs-db9ecdd93eb6ff8bb9b7039743b4ef3cbbcf2ab1.tar.bz2 markdown-rs-db9ecdd93eb6ff8bb9b7039743b4ef3cbbcf2ab1.zip |
Remove core tests, which tarpaulin doesn’t understand
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -146,38 +146,3 @@ pub fn to_mdast(value: &str, options: &ParseOptions) -> Result<mdast::Node, Stri let node = to_mdast::compile(&events, parse_state.bytes)?; Ok(node) } - -#[cfg(test)] -mod tests { - extern crate std; - use super::*; - - #[test] - fn test_to_html() { - assert_eq!( - to_html("a"), - "<p>a</p>", - "should support turning markdown into html with `to_html`" - ); - } - - #[test] - fn test_to_html_with_options() { - assert_eq!( - to_html_with_options("a", &Options::default()).unwrap(), - "<p>a</p>", - "should support turning markdown into html with `to_html_with_options`" - ); - } - - #[test] - fn test_to_mdast() { - assert!( - matches!( - to_mdast("a", &ParseOptions::default()).unwrap(), - mdast::Node::Root(_) - ), - "should support turning markdown into mdast with `to_mdast`" - ); - } -} |