From 267ae195e355529e78a136aea3c5092a4514388d Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Sat, 14 Oct 2023 23:16:11 +0800 Subject: [PATCH] Add test for `-V` short argument Signed-off-by: hi-rustin --- tests/testsuite/version.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testsuite/version.rs b/tests/testsuite/version.rs index f880c75a6a4..110e6100327 100644 --- a/tests/testsuite/version.rs +++ b/tests/testsuite/version.rs @@ -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]