From 84f5cffec908479ac0c32d66839aca5a8b0503ec Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 24 Apr 2014 17:55:34 +0200 Subject: tests: test for spaces --- tests/t0020-show-tests.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/t0020-show-tests.sh') diff --git a/tests/t0020-show-tests.sh b/tests/t0020-show-tests.sh index e55e574..a4b782f 100755 --- a/tests/t0020-show-tests.sh +++ b/tests/t0020-show-tests.sh @@ -10,6 +10,11 @@ test_expect_success 'Test "show" command' ' "$PASS" show cred1 ' +test_expect_success 'Test "show" command with spaces' ' + "$PASS" insert -e "I am a cred with lots of spaces"<<<"BLAH!!" && + [[ $("$PASS" show "I am a cred with lots of spaces") == "BLAH!!" ]] +' + test_expect_success 'Test "show" of nonexistant password' ' test_must_fail "$PASS" show cred2 ' -- cgit v1.2.3