Added a couple of extra test cases.

This commit is contained in:
Chris Jones 2018-09-08 13:49:50 -06:00
parent c22d088aad
commit e9abe9e658

View File

@ -1135,6 +1135,8 @@ func TestContextNegotiationFormatWithAccept(t *testing.T) {
{typicalAccept, []string{MIMEJSON, MIMEXML}, MIMEXML},
{typicalAccept, []string{MIMEXML, MIMEHTML}, MIMEHTML},
{typicalAccept, []string{MIMEJSON}, MIMEJSON},
{"text/*", []string{MIMEJSON, MIMEHTML}, MIMEHTML},
{"text/*", []string{MIMEJSON, MIMEXML}, ""},
}
for i, tc := range testCases {