Skip to content

Commit

Permalink
Auto merge of #12822 - hi-rustin:rustin-patch-version, r=weihanglo
Browse files Browse the repository at this point in the history
Add test for `-V` short argument

Just found it when I randomly jumped into this file :(
  • Loading branch information
bors committed Oct 14, 2023
2 parents f7e7cc2 + 267ae19 commit fadb3b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testsuite/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ fn simple() {
p.cargo("--version")
.with_stdout(&format!("cargo {}\n", cargo::version()))
.run();

p.cargo("-V")
.with_stdout(&format!("cargo {}\n", cargo::version()))
.run();
}

#[cargo_test]
Expand Down

0 comments on commit fadb3b1

Please sign in to comment.