blob: 584f4639726a2095df4c13ec51befb8d12e3e2c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
extern crate micromark;
use micromark::micromark;
use pretty_assertions::assert_eq;
#[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"
);
}
|