aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser/tests.rs
diff options
context:
space:
mode:
authorPhilipp A2019-12-07 18:30:43 +0100
committerPhilipp A2019-12-07 18:30:43 +0100
commit2f19fa55606306964f5e4d6a08b6957f547f7066 (patch)
tree3023a401e1c1bc1bcb86c90c80129058f34aa8ad /src/parser/tests.rs
parentec53e5420b41725a14b9bf0fc5d89e90bcfb882d (diff)
downloadrust-rst-2f19fa55606306964f5e4d6a08b6957f547f7066.tar.bz2
Add basic markup
Diffstat (limited to 'src/parser/tests.rs')
-rw-r--r--src/parser/tests.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/parser/tests.rs b/src/parser/tests.rs
index a3df64c..bf9fe22 100644
--- a/src/parser/tests.rs
+++ b/src/parser/tests.rs
@@ -17,6 +17,21 @@ fn plain() {
}
#[test]
+fn emph() {
+ parses_to! {
+ parser: RstParser,
+ input: "line *with markup*\n",
+ rule: Rule::paragraph,
+ tokens: [
+ paragraph(0, 18, [
+ str(0, 5),
+ emph(6, 17),
+ ])
+ ]
+ };
+}
+
+#[test]
fn title() {
parses_to! {
parser: RstParser,
@@ -125,7 +140,7 @@ A |subst| in-line
tokens: [
paragraph(0, 17, [
str(0, 2),
- substitution_ref(2, 9, [ substitution_name(3, 8) ]),
+ substitution_name(3, 8),
str(9, 17),
]),
substitution_def(19, 52, [