aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser/tests.rs
diff options
context:
space:
mode:
authorPhilipp A2019-12-08 16:55:21 +0100
committerPhilipp A2019-12-08 17:13:15 +0100
commit13ecb9436b5987237062a79c21b1630689d4715d (patch)
treec410ed45edfff10c5d09e9c38e1fd90f1ef9f7e9 /src/parser/tests.rs
parent588f2474c4f13417c9dae18defc657fcb6c0f07e (diff)
downloadrust-rst-13ecb9436b5987237062a79c21b1630689d4715d.tar.bz2
Render emph, strong, and literal
Diffstat (limited to 'src/parser/tests.rs')
-rw-r--r--src/parser/tests.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/parser/tests.rs b/src/parser/tests.rs
index bf9fe22..e161108 100644
--- a/src/parser/tests.rs
+++ b/src/parser/tests.rs
@@ -17,6 +17,18 @@ fn plain() {
}
#[test]
+fn emph_only() {
+ parses_to! {
+ parser: RstParser,
+ input: "*emphasis*",
+ rule: Rule::emph_outer,
+ tokens: [
+ emph(1, 9, [str_nested(1, 9)])
+ ]
+ };
+}
+
+#[test]
fn emph() {
parses_to! {
parser: RstParser,
@@ -25,7 +37,7 @@ fn emph() {
tokens: [
paragraph(0, 18, [
str(0, 5),
- emph(6, 17),
+ emph(6, 17, [str_nested(6, 17)]),
])
]
};