aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-14 14:23:58 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-14 14:23:58 +0200
commitdb9ecdd93eb6ff8bb9b7039743b4ef3cbbcf2ab1 (patch)
tree74b7f01384e12fbc982638a74644ef445109a8c2 /src
parentc16ce7361d4d976deaad42e783b7eae5d38ae763 (diff)
downloadmarkdown-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.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ab4c08e..143c931 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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`"
- );
- }
-}