We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0862e28 commit 9a4d7e5Copy full SHA for 9a4d7e5
src/versions.rs
@@ -149,7 +149,10 @@ mod tests {
149
with_install_dir(temp.path(), || {
150
let path = versioned_binary_path("example", &version).unwrap();
151
let filename = path.file_name().unwrap().to_string_lossy();
152
- assert!(filename.starts_with("example-1.2.3"));
+ #[cfg(windows)]
153
+ assert_eq!(filename, "example-1.2.3.exe");
154
+ #[cfg(not(windows))]
155
+ assert_eq!(filename, "example-1.2.3");
156
});
157
}
158
0 commit comments