Skip to content

Commit 9a4d7e5

Browse files
committed
wip
1 parent 0862e28 commit 9a4d7e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/versions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ mod tests {
149149
with_install_dir(temp.path(), || {
150150
let path = versioned_binary_path("example", &version).unwrap();
151151
let filename = path.file_name().unwrap().to_string_lossy();
152-
assert!(filename.starts_with("example-1.2.3"));
152+
#[cfg(windows)]
153+
assert_eq!(filename, "example-1.2.3.exe");
154+
#[cfg(not(windows))]
155+
assert_eq!(filename, "example-1.2.3");
153156
});
154157
}
155158

0 commit comments

Comments
 (0)