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:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user