test(headers): Allow tests inside list header macros, add tests.
Adds test cases from the relevant RFCs for a few headers. See also: #468, do we want the test cases rendered as examples in the docs?
This commit is contained in:
@@ -17,6 +17,8 @@ header! {
|
||||
#[doc="Content-Encoding = 1#content-coding"]
|
||||
#[doc="```"]
|
||||
(ContentEncoding, "Content-Encoding") => (Encoding)+
|
||||
|
||||
test_content_encoding {}
|
||||
}
|
||||
|
||||
bench_header!(single, ContentEncoding, { vec![b"gzip".to_vec()] });
|
||||
|
||||
Reference in New Issue
Block a user