summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testdata.json7
1 files changed, 4 insertions, 3 deletions
diff --git a/testdata.json b/testdata.json
index 0d8a4f3..8f28b30 100644
--- a/testdata.json
+++ b/testdata.json
@@ -15,7 +15,8 @@
[["text/plain", "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5"], 0.3],
[["image/jpeg", "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5"], 0.5],
[["text/html;level=2", "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5"], 0.4],
- [["text/html;level=3", "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5"], 0.7]
+ [["text/html;level=3", "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5"], 0.7],
+ [["text/plain", "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"], 0.2]
],
"best_match": [
@@ -30,8 +31,8 @@
[[["application/json", "text/html"], "application/json, text/html;q=0.9"], "application/json", "verify fitness ordering"],
[[["image/*", "application/xml"], "image/png"], "image/*", "match using a type wildcard"],
[[["image/*", "application/xml"], "image/*"], "image/*", "match using a wildcard for both requested and supported"],
- [[["text/html", "application/rdf+xml"], "text/html, application/rdf+xml"], "application/rdf+xml", "match should use highest order of supported when there is a tie"],
- [[["application/rdf+xml", "text/html"], "text/html, application/rdf+xml"], "text/html", "match should use highest order of supported when there is a tie"]
+ [[["text/html", "application/rdf+xml"], "text/html, application/rdf+xml"], "application/rdf+xml", "match should use highest order of supported when there is a tie"],
+ [[["application/rdf+xml", "text/html"], "text/html, application/rdf+xml"], "text/html", "match should use highest order of supported when there is a tie"]
],
"parse_mime_type": [