1
0
mirror of https://github.com/j178/prek.git synced 2026-04-30 10:20:26 +02:00

Add a test to ensure CUR_UV_VERSION in UV_VERSION_RANGE (#618)

This commit is contained in:
Jo
2025-09-03 21:24:25 +08:00
committed by GitHub
parent 2092da67dc
commit e4c1915633
+10
View File
@@ -488,3 +488,13 @@ impl Uv {
Ok(Self::new(uv_path))
}
}
#[test]
fn ensure_cur_uv_version_in_range() {
let version = Version::parse(CUR_UV_VERSION).expect("Invalid CUR_UV_VERSION");
assert!(
UV_VERSION_RANGE.matches(&version),
"CUR_UV_VERSION {CUR_UV_VERSION} does not satisfy the version requirement {}",
&*UV_VERSION_RANGE
);
}