Add tests for case-(in)sensitive sorting

pull/160/head
Ryan Schmidt 2022-06-03 16:29:38 -05:00 committed by Adrian Perez
parent a634077b5f
commit e5f227686a
4 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#! /bin/bash
cat <<---
This test checks that case-insensitive sorting works.
--
nginx_start 'fancyindex_case_sensitive off;'
content=$(fetch /case-sensitivity/)
grep -A 999 '\<alice\>' <<< "${content}" | grep '\<Bob\>' # Bob is after alice

View File

@ -0,0 +1,8 @@
#! /bin/bash
cat <<---
This test checks that case-sensitive sorting works.
--
nginx_start 'fancyindex_case_sensitive on;'
content=$(fetch /case-sensitivity/)
grep -A 999 '\<Bob\>' <<< "${content}" | grep '\<alice\>' # alice is after Bob

0
t/case-sensitivity/Bob Normal file
View File

0
t/case-sensitivity/alice Normal file
View File