aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc_zero.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
commitec2d1bfb4232178fb3a6cba36f138bc6efbbf34a (patch)
tree2da4be3be22c2324c48cb17133b3f4b26b9139d2 /tests/misc_zero.rs
parent861af95c119721e814460fa7dc32bd3d74b38484 (diff)
downloadmarkdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.gz
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.bz2
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.zip
Rename crate to `markdown`
Diffstat (limited to 'tests/misc_zero.rs')
-rw-r--r--tests/misc_zero.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/misc_zero.rs b/tests/misc_zero.rs
index 0b54d50..751a632 100644
--- a/tests/misc_zero.rs
+++ b/tests/misc_zero.rs
@@ -1,19 +1,19 @@
-extern crate micromark;
-use micromark::micromark;
+extern crate markdown;
+use markdown::to_html;
use pretty_assertions::assert_eq;
#[test]
fn zero() {
- assert_eq!(micromark(""), "", "should support no markdown");
+ assert_eq!(to_html(""), "", "should support no markdown");
assert_eq!(
- micromark("asd\0asd"),
+ to_html("asd\0asd"),
"<p>asd�asd</p>",
"should replace `\\0` w/ a replacement characters (`�`)"
);
assert_eq!(
- micromark("&#0;"),
+ to_html("&#0;"),
"<p>�</p>",
"should replace NUL in a character reference"
);
@@ -21,7 +21,7 @@ fn zero() {
// This doesn’t make sense in markdown, as character escapes only work on
// ascii punctuation, but it’s good to demonstrate the behavior.
assert_eq!(
- micromark("\\0"),
+ to_html("\\0"),
"<p>\\0</p>",
"should not support NUL in a character escape"
);