Add tests for names for lesser blocks.
This commit is contained in:
@@ -1499,6 +1499,8 @@ fn compare_verse_block<'b, 's>(
|
||||
let this_status = DiffStatus::Good;
|
||||
let message = None;
|
||||
|
||||
// TODO: Compare :name
|
||||
|
||||
for (_emacs_child, _rust_child) in children.iter().skip(2).zip(rust.children.iter()) {}
|
||||
|
||||
Ok(DiffResult {
|
||||
@@ -1520,6 +1522,8 @@ fn compare_comment_block<'b, 's>(
|
||||
let mut this_status = DiffStatus::Good;
|
||||
let mut message = None;
|
||||
|
||||
// TODO: Compare :name
|
||||
|
||||
// Compare value
|
||||
let contents = get_property_quoted_string(emacs, ":value")?.unwrap_or(String::new());
|
||||
if contents != rust.contents {
|
||||
@@ -1715,7 +1719,7 @@ fn compare_export_block<'b, 's>(
|
||||
let this_status = DiffStatus::Good;
|
||||
let message = None;
|
||||
|
||||
// TODO: Compare :type :value
|
||||
// TODO: Compare :type :value :name
|
||||
|
||||
Ok(DiffResult {
|
||||
status: this_status,
|
||||
@@ -1736,6 +1740,8 @@ fn compare_src_block<'b, 's>(
|
||||
let mut this_status = DiffStatus::Good;
|
||||
let mut message = None;
|
||||
|
||||
// TODO: Compare :name
|
||||
|
||||
// Compare language
|
||||
let language = get_property_quoted_string(emacs, ":language")?;
|
||||
if language.as_ref().map(String::as_str) != rust.language {
|
||||
|
||||
Reference in New Issue
Block a user