test(lockfile): v4 isn't the default for rust-version 1.77

This commit is contained in:
Weihang Lo 2024-01-30 16:21:56 -05:00
parent fb95ac4887
commit 9ae485df28
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
2 changed files with 6 additions and 1 deletions

View File

@ -85,7 +85,7 @@ pub enum ResolveVersion {
V3,
/// SourceId URL serialization is aware of URL encoding. For example,
/// `?branch=foo bar` is now encoded as `?branch=foo+bar` and can be decoded
/// back and forth correctly. Introduced in 2024 in version 1.77.
/// back and forth correctly. Introduced in 2024 in version 1.78.
V4,
/// Unstable. Will collect a certain amount of changes and then go.
///

View File

@ -1220,6 +1220,7 @@ dependencies = [
("1.37", Some(1), 1),
("1.37", Some(2), 2),
("1.37", Some(3), 3),
("1.37", Some(4), 4),
// v2 introduced
("1.38", None, 1),
// last version of v1 as the default
@ -1229,6 +1230,7 @@ dependencies = [
("1.41", Some(1), 1),
("1.41", Some(2), 2),
("1.41", Some(3), 3),
("1.41", Some(4), 4),
// v3 introduced
("1.47", None, 2),
// last version of v2 as the default
@ -1238,6 +1240,9 @@ dependencies = [
("1.53", Some(1), 1),
("1.53", Some(2), 2),
("1.53", Some(3), 3),
("1.53", Some(4), 4),
// v4 introduced
("1.78", None, 3),
];
for (msrv, existing_lockfile, expected_version) in cases {