Skip to content

Commit e201040

Browse files
test: include test matching to wildcard matching any version
1 parent 4e15dbf commit e201040

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/config/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,13 @@ make_backup = false
16761676
assert!(check_semver_version("^1.0.0-alpha.1", "1.0.0-alpha.beta"));
16771677
}
16781678

1679+
// Any version is allowed when * is used
1680+
#[test]
1681+
fn test_wildcard_any() {
1682+
assert!(check_semver_version("*", "1.0.0"));
1683+
assert!(check_semver_version("*", "1.0.0+build"));
1684+
}
1685+
16791686
// Demonstrates lexicographic ordering of alphanumeric identifiers in pre-releases
16801687
#[test]
16811688
fn test_pre_release_lexicographic_ordering() {

0 commit comments

Comments
 (0)