Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test a description limit of zero or less
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0101-index.sh | 9 |
1 file changed, 9 insertions, 0 deletions
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 ">日本語\.\.\.</a>" 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/.>\.\.\.</a>" 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' ' |
