Add tests for names for lesser blocks.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user