aboutsummaryrefslogtreecommitdiffstats
path: root/tests/attention.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 13:49:56 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 13:55:56 +0200
commit55a6f8560cf88b655f49f1a1a59f6c1dc6afe022 (patch)
treec53e38ee36c72292cedccaebdfce1a6beddeaf6c /tests/attention.rs
parentf2d62d446a7b1e03ef14b580e2aca0fad8aa23ef (diff)
downloadmarkdown-rs-55a6f8560cf88b655f49f1a1a59f6c1dc6afe022.tar.gz
markdown-rs-55a6f8560cf88b655f49f1a1a59f6c1dc6afe022.tar.bz2
markdown-rs-55a6f8560cf88b655f49f1a1a59f6c1dc6afe022.zip
Fix resizing attention bug
Diffstat (limited to 'tests/attention.rs')
-rw-r--r--tests/attention.rs66
1 files changed, 30 insertions, 36 deletions
diff --git a/tests/attention.rs b/tests/attention.rs
index 11ba7d8..6ab173b 100644
--- a/tests/attention.rs
+++ b/tests/attention.rs
@@ -559,12 +559,11 @@ fn attention() {
"should support strong emphasis around the other marker"
);
- // To do: resizing attention bug?
- // assert_eq!(
- // micromark("**foo*"),
- // "<p>*<em>foo</em></p>",
- // "should support a superfluous marker at the start of emphasis"
- // );
+ assert_eq!(
+ micromark("**foo*"),
+ "<p>*<em>foo</em></p>",
+ "should support a superfluous marker at the start of emphasis"
+ );
assert_eq!(
micromark("*foo**"),
@@ -572,19 +571,17 @@ fn attention() {
"should support a superfluous marker at the end of emphasis"
);
- // To do: resizing attention bug?
- // assert_eq!(
- // micromark("***foo**"),
- // "<p>*<strong>foo</strong></p>",
- // "should support a superfluous marker at the start of strong"
- // );
+ assert_eq!(
+ micromark("***foo**"),
+ "<p>*<strong>foo</strong></p>",
+ "should support a superfluous marker at the start of strong"
+ );
- // To do: resizing attention bug?
- // assert_eq!(
- // micromark("****foo*"),
- // "<p>***<em>foo</em></p>",
- // "should support multiple superfluous markers at the start of strong"
- // );
+ assert_eq!(
+ micromark("****foo*"),
+ "<p>***<em>foo</em></p>",
+ "should support multiple superfluous markers at the start of strong"
+ );
assert_eq!(
micromark("**foo***"),
@@ -635,12 +632,11 @@ fn attention() {
"should support strong emphasis around the other marker"
);
- // To do: resizing attention bug?
- // assert_eq!(
- // micromark("__foo_"),
- // "<p>_<em>foo</em></p>",
- // "should support a superfluous marker at the start of emphasis"
- // );
+ assert_eq!(
+ micromark("__foo_"),
+ "<p>_<em>foo</em></p>",
+ "should support a superfluous marker at the start of emphasis"
+ );
assert_eq!(
micromark("_foo__"),
@@ -648,19 +644,17 @@ fn attention() {
"should support a superfluous marker at the end of emphasis"
);
- // To do: resizing attention bug?
- // assert_eq!(
- // micromark("___foo__"),
- // "<p>_<strong>foo</strong></p>",
- // "should support a superfluous marker at the start of strong"
- // );
+ assert_eq!(
+ micromark("___foo__"),
+ "<p>_<strong>foo</strong></p>",
+ "should support a superfluous marker at the start of strong"
+ );
- // To do: resizing attention bug?
- // assert_eq!(
- // micromark("____foo_"),
- // "<p>___<em>foo</em></p>",
- // "should support multiple superfluous markers at the start of strong"
- // );
+ assert_eq!(
+ micromark("____foo_"),
+ "<p>___<em>foo</em></p>",
+ "should support multiple superfluous markers at the start of strong"
+ );
assert_eq!(
micromark("__foo___"),