Skip to content

Commit fadb3b1

Browse files
committed
Auto merge of #12822 - hi-rustin:rustin-patch-version, r=weihanglo
Add test for `-V` short argument Just found it when I randomly jumped into this file :(
2 parents f7e7cc2 + 267ae19 commit fadb3b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/testsuite/version.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ fn simple() {
1313
p.cargo("--version")
1414
.with_stdout(&format!("cargo {}\n", cargo::version()))
1515
.run();
16+
17+
p.cargo("-V")
18+
.with_stdout(&format!("cargo {}\n", cargo::version()))
19+
.run();
1620
}
1721

1822
#[cargo_test]

0 commit comments

Comments
 (0)