Support ("") as being equal to None in compare_property_list_of_ast_nodes.

This commit is contained in:
Tom Alexander 2023-10-10 16:33:17 -04:00
parent 3aca01891d
commit 6d4db60688
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -353,6 +353,15 @@ where
let rust_value: Option<Vec<RV>> = rust_value.map(|it| it.collect());
match (value, rust_value) {
(None, None) => {}
(Some(el), None)
if el.len() == 1
&& el.into_iter().all(|t| {
if let Ok(r#""""#) = t.as_atom() {
true
} else {
false
}
}) => {}
(None, rv @ Some(_)) | (Some(_), rv @ None) => {
let this_status = DiffStatus::Bad;
let message = Some(format!(