Record the property comparisons.
This commit is contained in:
parent
badeaf8246
commit
423f65046e
@ -12,7 +12,16 @@ macro_rules! wasm_compare {
|
|||||||
.ok_or("Should have an attributes child.")?
|
.ok_or("Should have an attributes child.")?
|
||||||
.as_map()?;
|
.as_map()?;
|
||||||
let mut emacs_keys: std::collections::BTreeSet<&str> =
|
let mut emacs_keys: std::collections::BTreeSet<&str> =
|
||||||
emacs_attributes_map.keys().map(|s| *s).collect();
|
emacs_attributes_map.keys().map(|s| *s).collect();
|
||||||
|
|
||||||
|
// Mark :standard-properties as seen because it will be handled separately.
|
||||||
|
if emacs_keys.contains(":standard-properties") {
|
||||||
|
emacs_keys.remove(":standard-properties");
|
||||||
|
} else {
|
||||||
|
result.status.push(WasmDiffStatus::Bad(
|
||||||
|
"Emacs node lacked :standard-properties field.".into(),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// Compare name.
|
// Compare name.
|
||||||
@ -90,8 +99,7 @@ macro_rules! wasm_compare {
|
|||||||
name
|
name
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
let result = $compare_fn($source, $emacs, $wasm, emacs_name, $wasm_value_getter)?;
|
result.extend($compare_fn($source, $emacs, $wasm, emacs_name, $wasm_value_getter)?)?;
|
||||||
// TODO: record this result.
|
|
||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user