Skip to content

Commit

Permalink
comment out end tag tests that aren't triviably updateable
Browse files Browse the repository at this point in the history
  • Loading branch information
max-heller committed Mar 3, 2024
1 parent fc30c6d commit 82110a4
Showing 1 changed file with 36 additions and 44 deletions.
80 changes: 36 additions & 44 deletions tests/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,7 @@ mod start {
}

mod end {
use pulldown_cmark::{
Alignment::{self, Center, Left, Right},
CodeBlockKind,
Event::*,
HeadingLevel,
LinkType::*,
Tag::*,
TagEnd,
};
use pulldown_cmark::{Event::*, HeadingLevel, TagEnd};

use super::s;

Expand Down Expand Up @@ -222,41 +214,41 @@ mod end {
fn item() {
assert_eq!(s(End(TagEnd::Item)), "")
}
#[test]
fn link() {
assert_eq!(
s(End(TagEnd::Link {
link_type: Inline,
dest_url: "/uri".into(),
title: "title".into(),
id: "".into()
})),
"](/uri \"title\")"
)
}
#[test]
fn link_without_title() {
assert_eq!(
s(End(TagEnd::Link {
link_type: Inline,
dest_url: "/uri".into(),
title: "".into(),
id: "".into()
})),
"](/uri)"
)
}
#[test]
fn image() {
assert_eq!(
s(End(TagEnd::Image(Inline, "/uri".into(), "title".into()))),
"](/uri \"title\")"
)
}
#[test]
fn image_without_title() {
assert_eq!(s(End(TagEnd::Image(Inline, "/uri".into(), "".into()))), "](/uri)")
}
// #[test]
// fn link() {
// assert_eq!(
// s(End(TagEnd::Link {
// link_type: Inline,
// dest_url: "/uri".into(),
// title: "title".into(),
// id: "".into()
// })),
// "](/uri \"title\")"
// )
// }
// #[test]
// fn link_without_title() {
// assert_eq!(
// s(End(TagEnd::Link {
// link_type: Inline,
// dest_url: "/uri".into(),
// title: "".into(),
// id: "".into()
// })),
// "](/uri)"
// )
// }
// #[test]
// fn image() {
// assert_eq!(
// s(End(TagEnd::Image(Inline, "/uri".into(), "title".into()))),
// "](/uri \"title\")"
// )
// }
// #[test]
// fn image_without_title() {
// assert_eq!(s(End(TagEnd::Image(Inline, "/uri".into(), "".into()))), "](/uri)")
// }
#[test]
fn table() {
assert_eq!(s(End(TagEnd::Table)), "")
Expand Down

0 comments on commit 82110a4

Please sign in to comment.