aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/text.rs')
-rw-r--r--tests/text.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/text.rs b/tests/text.rs
new file mode 100644
index 0000000..7db9e1a
--- /dev/null
+++ b/tests/text.rs
@@ -0,0 +1,23 @@
+extern crate micromark;
+use micromark::micromark;
+
+#[test]
+fn text() {
+ assert_eq!(
+ micromark("hello $.;'there"),
+ "<p>hello $.;'there</p>",
+ "should support ascii text"
+ );
+
+ assert_eq!(
+ micromark("Foo χρῆν"),
+ "<p>Foo χρῆν</p>",
+ "should support unicode text"
+ );
+
+ assert_eq!(
+ micromark("Multiple spaces"),
+ "<p>Multiple spaces</p>",
+ "should preserve internal spaces verbatim"
+ );
+}