Skip to content

Commit 2d13dee

Browse files
authored
Update t9999-psuh-tutorial.sh
1 parent d923d8b commit 2d13dee

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

t/t9999-psuh-tutorial.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
#!/bin/sh
22

33
test_description='git-psuh test
4-
This test runs git-psuh and makes sure it does not crash.'
4+
This test runs git-psuh and makes sure it does not crash or have other errors.'
55

66
. ./test-lib.sh
77

8+
# This is the main test from the tutorial, ensuring the command
9+
# runs and prints the expected output after setting the necessary config.
810
test_expect_success 'runs correctly with no args and good output' '
9-
git config user.name "Test User" &&
10-
git psuh >actual &&
11-
grep "Your name:" actual
11+
git config user.name "Test User" &&
12+
git psuh >actual &&
13+
grep "Your name: Test User" actual
14+
'
15+
16+
# A simpler test just to ensure the command exits successfully.
17+
test_expect_success 'git psuh does not crash' '
18+
git psuh
1219
'
1320

1421
test_done

0 commit comments

Comments
 (0)