Add tests for names for lesser blocks.

This commit is contained in:
Tom Alexander
2023-10-04 19:37:14 -04:00
parent 258e9485de
commit 4fc81e983a
6 changed files with 29 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ pub(crate) fn verse_block<'b, 'g, 'r, 's>(
remaining,
VerseBlock {
source: source.into(),
name: name.into(),
name: None, // TODO
data: parameters.map(|parameters| Into::<&str>::into(parameters)),
children,
},
@@ -129,6 +129,7 @@ pub(crate) fn comment_block<'b, 'g, 'r, 's>(
remaining,
CommentBlock {
source: source.into(),
name: None, // TODO
contents: contents.into(),
},
))
@@ -182,6 +183,7 @@ pub(crate) fn example_block<'b, 'g, 'r, 's>(
remaining,
ExampleBlock {
source: source.into(),
name: None, // TODO
switches,
number_lines,
preserve_indent,
@@ -227,7 +229,7 @@ pub(crate) fn export_block<'b, 'g, 'r, 's>(
remaining,
ExportBlock {
source: source.into(),
name: name.into(),
name: None, // TODO
data: parameters.map(|parameters| Into::<&str>::into(parameters)),
contents: contents.into(),
},
@@ -287,6 +289,7 @@ pub(crate) fn src_block<'b, 'g, 'r, 's>(
remaining,
SrcBlock {
source: source.into(),
name: None, // TODO
language: language.map(Into::<&str>::into),
switches,
parameters: parameters.map(Into::<&str>::into),