mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 17:42:14 +08:00
Added a couple of extra test cases.
This commit is contained in:
parent
c22d088aad
commit
e9abe9e658
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user