diff options
| author | Philipp A | 2018-11-23 10:31:18 +0100 |
|---|---|---|
| committer | Philipp A | 2018-11-23 10:31:18 +0100 |
| commit | 99c3bef8bb153e4b5eb189455f88458971f8ce54 (patch) | |
| tree | 100e3a701eefd534722441e36927c211b9e64d3d /src/parser | |
| parent | bc5af7498160a9072af5a731f5116ef2db1e30b9 (diff) | |
| download | rust-rst-99c3bef8bb153e4b5eb189455f88458971f8ce54.tar.bz2 | |
fixed tests
Diffstat (limited to 'src/parser')
| -rw-r--r-- | src/parser/tests.rs | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/parser/tests.rs b/src/parser/tests.rs index 40af5ac..74d741d 100644 --- a/src/parser/tests.rs +++ b/src/parser/tests.rs @@ -80,28 +80,27 @@ fn admonitions() { parses_to! { parser: RstParser, input: "\ -.. note:: In line - Next line -.. admonition:: - +.. note:: Just next line +.. admonition:: In line title + + Next line .. danger:: Just this line ", rule: Rule::document, tokens: [ - admonition(0, 31, [ + admonition_gen(0, 28, [ admonition_type(3, 7), - line(9, 18), - paragraph(21, 31, [ line(21, 31) ]), + paragraph(13, 28, [ line(13, 28) ]), ]), - admonition(31, 66, [ - admonition_type(34, 44), - paragraph(51, 66, [ line(51, 66) ]), + admonition(28, 72, [ + line(43, 58), + paragraph(62, 72, [ line(62, 72) ]), ]), - admonition(67, 94, [ - admonition_type(70, 76), - line(78, 94), + admonition_gen(73, 100, [ + admonition_type(76, 82), + line(84, 100), ]), ] }; |
