0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -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
}{
{`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 {
c := newTestController(test.inputExts)