mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-23 12:15:14 +08:00
more cases added to test struct in extParse test
This commit is contained in:
parent
a5a5c06716
commit
65f7190030
@ -48,6 +48,8 @@ func TestExtParse(t *testing.T) {
|
|||||||
expectedExts []string
|
expectedExts []string
|
||||||
}{
|
}{
|
||||||
{`ext .html .htm .php`, false, []string{".html", ".htm", ".php"}},
|
{`ext .html .htm .php`, false, []string{".html", ".htm", ".php"}},
|
||||||
|
{`ext .php .html .xml`, false, []string{".php", ".html", ".xml"}},
|
||||||
|
{`ext .txt .php .xml`, false, []string{".txt", ".php", ".xml"}},
|
||||||
}
|
}
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
c := newTestController(test.inputExts)
|
c := newTestController(test.inputExts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user