Skip to content

Commit 2ce4f95

Browse files
committed
Fix markdown code block formatting in unit test
Correct grep pattern to properly match markdown code block syntax Ensures the test accurately validates markdown output
1 parent 11b4186 commit 2ce4f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/test_git_output_format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ else
7777
fi
7878

7979
# Test 5: Check if output is in markdown format
80-
if echo "$output" | grep -q "^#" && echo "$output" | grep -q "^```"; then
80+
if echo "$output" | grep -q "^#" && echo "$output" | grep -q "\`\`\`"; then
8181
echo "ok $((test_number+=1)) - output is in markdown format"
8282
else
8383
echo "not ok $((test_number+=1)) - output is in markdown format"

0 commit comments

Comments
 (0)