Skip to content

Commit

Permalink
test(msrv): Clarify the differences in deps
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 19, 2024
1 parent 1f46b4b commit 2c7f0f6
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions tests/testsuite/rust_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,22 +409,16 @@ foo v0.0.1 ([ROOT]/foo)

#[cargo_test]
fn resolve_with_multiple_rust_versions() {
Package::new("shared-only-newer", "1.65.0")
.rust_version("1.65.0")
.file("src/lib.rs", "fn other_stuff() {}")
.publish();
Package::new("shared-newer-and-older", "1.45.0")
.rust_version("1.45.0")
.file("src/lib.rs", "fn other_stuff() {}")
.publish();
Package::new("shared-newer-and-older", "1.55.0")
.rust_version("1.55.0")
.file("src/lib.rs", "fn other_stuff() {}")
.publish();
Package::new("shared-newer-and-older", "1.65.0")
Package::new(&format!("shared-only-newer"), "1.65.0")
.rust_version("1.65.0")
.file("src/lib.rs", "fn other_stuff() {}")
.publish();
for ver in ["1.45.0", "1.55.0", "1.65.0"] {
Package::new(&format!("shared-newer-and-older"), ver)
.rust_version(ver)
.file("src/lib.rs", "fn other_stuff() {}")
.publish();
}

let p = project()
.file(
Expand Down

0 comments on commit 2c7f0f6

Please sign in to comment.