0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

more cases added to test struct in extParse test

This commit is contained in:
Karthic Rao 2015-06-17 14:07:26 +05:30
parent a5a5c06716
commit 65f7190030

View file

@ -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)