Skip to content

Commit

Permalink
test(dist): add regression tests for parsing beta versions with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
roife authored and rami3l committed Jun 4, 2024
1 parent 74d16e6 commit 6d43761
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/suite/cli_misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,18 @@ fn install_unavailable_platform() {
});
}

// issue #1329
#[test]
fn install_beta_with_tag() {
clitools::test(Scenario::BetaTag, &|config| {
config.expect_ok(&["rustup", "default", "1.78.0-beta"]);
config.expect_stdout_ok(&["rustc", "--version"], "1.78.0-beta");

config.expect_ok(&["rustup", "default", "1.79.0-beta.2"]);
config.expect_stdout_ok(&["rustc", "--version"], "1.79.0-beta.2");
})
}

#[test]
fn update_nightly_even_with_incompat() {
clitools::test(Scenario::MissingComponent, &|config| {
Expand Down

0 comments on commit 6d43761

Please sign in to comment.