aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/heading_atx.rs12
-rw-r--r--tests/html_flow.rs15
-rw-r--r--tests/lib.rs8
-rw-r--r--tests/misc_dangerous_protocol.rs2
-rw-r--r--tests/thematic_break.rs13
5 files changed, 20 insertions, 30 deletions
diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs
index 8d4acfd..20da860 100644
--- a/tests/heading_atx.rs
+++ b/tests/heading_atx.rs
@@ -56,13 +56,13 @@ fn heading_atx() {
"should not support a heading for a number sign not followed by whitespace (2)"
);
- // To do: phrasing.
- // assert_eq!(
- // micromark("\\## foo"),
- // "<p>## foo</p>",
- // "should not support a heading for an escaped number sign"
- // );
+ assert_eq!(
+ micromark("\\## foo"),
+ "<p>## foo</p>",
+ "should not support a heading for an escaped number sign"
+ );
+ // To do: attention.
// assert_eq!(
// micromark("# foo *bar* \\*baz\\*"),
// "<h1>foo <em>bar</em> *baz*</h1>",
diff --git a/tests/html_flow.rs b/tests/html_flow.rs
index 6445af3..140e11d 100644
--- a/tests/html_flow.rs
+++ b/tests/html_flow.rs
@@ -97,7 +97,7 @@ p {color:blue;}
"should support raw tags w/o ending"
);
- // To do: phrasing.
+ // To do: attention.
// assert_eq!(
// micromark_with_options("<style>p{color:red;}</style>\n*foo*", DANGER),
// "<style>p{color:red;}</style>\n<p><em>foo</em></p>",
@@ -128,7 +128,7 @@ p {color:blue;}
"should not support an eof after a self-closing slash"
);
- // To do: phrasing.
+ // To do: attention.
// assert_eq!(
// micromark_with_options("<script/\n*asd*", DANGER),
// "<p>&lt;script/\n<em>asd</em></p>",
@@ -147,12 +147,11 @@ p {color:blue;}
"should support a line ending after a self-closing tag"
);
- // To do: html (text).
- // assert_eq!(
- // micromark_with_options("<script/>a", DANGER),
- // "<p><script/>a</p>",
- // "should not support other characters after a self-closing tag"
- // );
+ assert_eq!(
+ micromark_with_options("<script/>a", DANGER),
+ "<p><script/>a</p>",
+ "should not support other characters after a self-closing tag"
+ );
assert_eq!(
micromark_with_options("<script>a", DANGER),
diff --git a/tests/lib.rs b/tests/lib.rs
deleted file mode 100644
index 18fcef2..0000000
--- a/tests/lib.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-extern crate micromark;
-use micromark::micromark;
-
-#[test]
-fn basic() {
- assert_eq!(micromark("asd"), "<p>asd</p>", "should work");
- assert_eq!(micromark("1 < 3"), "<p>1 &lt; 3</p>", "should encode");
-}
diff --git a/tests/misc_dangerous_protocol.rs b/tests/misc_dangerous_protocol.rs
index 9069ecd..6f759e3 100644
--- a/tests/misc_dangerous_protocol.rs
+++ b/tests/misc_dangerous_protocol.rs
@@ -1,5 +1,5 @@
extern crate micromark;
-use micromark::{micromark};
+use micromark::micromark;
#[test]
fn dangerous_protocol_autolink() {
diff --git a/tests/thematic_break.rs b/tests/thematic_break.rs
index 6435e59..3dc7b5d 100644
--- a/tests/thematic_break.rs
+++ b/tests/thematic_break.rs
@@ -118,7 +118,7 @@ fn thematic_break() {
"should not support thematic breaks w/ other characters (3)"
);
- // To do: phrasing.
+ // To do: attention.
// assert_eq!(
// micromark(" *-*"),
// "<p><em>-</em></p>",
@@ -138,12 +138,11 @@ fn thematic_break() {
// "should support thematic breaks mixed w/ lists (2)"
// );
- // To do: paragraph.
- // assert_eq!(
- // micromark("Foo\n***\nbar"),
- // "<p>Foo</p>\n<hr />\n<p>bar</p>",
- // "should support thematic breaks interrupting paragraphs"
- // );
+ assert_eq!(
+ micromark("Foo\n***\nbar"),
+ "<p>Foo</p>\n<hr />\n<p>bar</p>",
+ "should support thematic breaks interrupting paragraphs"
+ );
// To do: setext.
// assert_eq!(