From: Michael Haggerty Date: Thu, 04 Aug 2011 04:36:16 GMT Subject: [PATCH v3 06/23] git-check-attr: Add tests of command-line parsing Message-ID: <1312432593-9841-7-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1312432593-9841-1-git-send-email-mhagger@alum.mit.edu> Signed-off-by: Michael Haggerty --- t/t0003-attributes.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index dae76b3..f1debeb 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -44,6 +44,13 @@ test_expect_success 'setup' ' test_expect_success 'command line checks' ' + test_must_fail git check-attr && + test_must_fail git check-attr -- && + test_must_fail git check-attr -- f && + echo "f" | test_must_fail git check-attr --stdin && + echo "f" | test_must_fail git check-attr --stdin -- f && + echo "f" | test_must_fail git check-attr --stdin test -- f && + echo "f" | test_must_fail git check-attr --stdin test f && test_must_fail git check-attr "" -- f ' -- 1.7.6.8.gd2879