Skip to content

Commit e5f2276

Browse files
ryandesignaperezdc
authored andcommitted
Add tests for case-(in)sensitive sorting
1 parent a634077 commit e5f2276

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

t/bug78-case-insensitive.test

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

t/bug78-case-sensitive.test

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

t/case-sensitivity/Bob

Whitespace-only changes.

t/case-sensitivity/alice

Whitespace-only changes.

0 commit comments

Comments
 (0)