🐛 fix: add test for asset name format and bump to 0.5.2
continuous-integration/drone/tag Build is passing
continuous-integration/drone/tag Build is passing
Adds a unit test that asserts detect_arch returns names prefixed with 'tmuxido-' and suffixed with '-linux', matching what CI uploads.
This commit is contained in:
@@ -198,6 +198,19 @@ mod tests {
|
||||
assert!(version.contains('.'));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_prefix_arch_asset_with_tmuxido() {
|
||||
let arch = detect_arch().expect("should detect supported arch");
|
||||
assert!(
|
||||
arch.starts_with("tmuxido-"),
|
||||
"asset name must start with 'tmuxido-', got: {arch}"
|
||||
);
|
||||
assert!(
|
||||
arch.ends_with("-linux"),
|
||||
"asset name must end with '-linux', got: {arch}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_compare_versions_correctly() {
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user