diff options
Diffstat (limited to 'src/parser/tests.rs')
| -rw-r--r-- | src/parser/tests.rs | 14 |
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)]), ]) ] }; |
