From 0dcb9a2bf9a7a125c1ddcd183ae63a84ae9ba3c8 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 11:31:01 -1000 Subject: Test a description limit of zero or less --- tests/t0101-index.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index f8118b3..60bdd46 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh @@ -58,6 +58,15 @@ test_expect_success 'a cut description keeps whole characters' ' grep ">日本語\.\.\." tmp ' +test_expect_success 'a description limit of 0 or less leaves the ellipsis alone' ' + for limit in 0 -1 + do + cgitrc_copy limitrc max-repodesc-length=$limit && + cgit_ok limitrc "url=" >tmp && + test_grep "href=./bar/.>\.\.\." tmp || return 1 + done +' + # A url naming no repository falls through to the index as a prefix that # matches none, which is not the same as a search finding nothing. test_expect_success 'a url matching no repository says so' ' -- cgit 2.12.1