Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

The test of a program's version fields passes on a Windows in any language

denfrye011a6b39baf
diff --git a/crates/rf-win/src/pe.rs b/crates/rf-win/src/pe.rs
index 386a4db8..00831ba5 100644
--- a/crates/rf-win/src/pe.rs
+++ b/crates/rf-win/src/pe.rs
@@ -141,7 +141,9 @@ mod tests {
return;
}
let i = super::info(p).expect("cmd is a PE image");
- assert!(i.copyright.as_deref().unwrap_or("").contains("Microsoft"), "{i:?}");
+ // (the copyright is in Windows' own language, "© Корпорация Майкрософт" on a Russian one; the company is the same in all)
+ assert!(!i.copyright.as_deref().unwrap_or("").is_empty(), "{i:?}");
+ assert!(i.company.as_deref().unwrap_or("").contains("Microsoft"), "{i:?}");
assert!(i.language.is_some(), "{i:?}");
assert!(i.product_version.is_some(), "{i:?}");
assert!(i.original_filename.is_some(), "{i:?}");