Compliance cases
These are the 437 inputs a submission must parse. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.
All three formats in RFC 9110 §5.6.7: IMF-fixdate, the obsolete RFC 850 form with its two-digit year, and ANSI C asctime. Matching is strict: exact case, single spaces, ASCII digits, the weekday must be the date's, and impossible dates, hour 24 and leap seconds are rejected, across the proleptic Gregorian years 0000 to 9999. The compliance suite has 80,281 lines: every HTTP-date the RFCs show, the tests of Go's net/http, Rust's httpdate, curl, Django and CPython's http.cookiejar pinned by commit, every month, weekday and two-digit year, leap rules, month ends, 32-bit limits, near-miss names and digits, and seeded random lines. An RFC 9110 parser, Python's datetime and V8 agree on every answer.
Run the full compliance suite locally. Replace your-component.wasm
with your compiled component.
Download the suite
curl -fLo parse_http_date.comply.wasm https://calculated.world/comply/parse_http_date.wasm
npx qipok your-component.wasm --suite parse_http_date.comply.wasm
All 437 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000400 | gen-0363 Generated |
1634564074␊168422497956␊invalid␊1378411389␊21338…
|
6 lines | |
| 000401 | gen-0364 Generated |
9200295␊2205681152␊1182043452␊986238674␊14205732…
|
6 lines | |
| 000402 | gen-0365 Generated |
-7789150138␊invalid␊488797900␊invalid␊1426841086…
|
14 lines | |
| 000403 | gen-0366 Generated |
invalid␊139682867290␊2112498877␊9651139␊20504498…
|
12 lines | |
| 000404 | gen-0367 Generated |
2323725131␊1648220625␊871558579␊-57658630358␊194…
|
11 lines | |
| 000405 | gen-0368 Generated |
1024320408␊811391179␊185105322970␊447691892␊7900…
|
10 lines | |
| 000406 | gen-0369 Generated |
invalid␊invalid␊2123652016␊invalid␊104354597␊719…
|
8 lines | |
| 000407 | gen-0370 Generated |
16853228435␊667349785␊1053466827␊2657913446␊-212…
|
14 lines | |
| 000408 | gen-0371 Generated |
invalid␊225134921448␊481247500␊1086864975␊invali…
|
11 lines | |
| 000409 | gen-0372 Generated |
1252554499␊invalid␊invalid␊52039656403␊178188457…
|
6 lines | |
| 000410 | gen-0373 Generated |
1134088511␊8154496␊invalid␊2008525682␊
|
4 lines | |
| 000411 | gen-0374 Generated |
129656257569␊579405716␊164881799913␊1227401307␊2…
|
15 lines | |
| 000412 | gen-0375 Generated |
978040007␊-52373465006␊1174364750␊109903050907␊7…
|
10 lines | |
| 000413 | gen-0376 Generated |
invalid␊583333302␊241122741739␊-53432390283␊inva…
|
16 lines | |
| 000414 | gen-0377 Generated |
-21384088064␊80497219716␊400354207␊invalid␊inval…
|
5 lines | |
| 000415 | gen-0378 Generated |
230746963672␊552696210␊87784194989␊invalid␊11606…
|
9 lines | |
| 000416 | gen-0379 Generated |
731126291␊2080176000␊2421387655␊invalid␊invalid␊…
|
8 lines | |
| 000417 | gen-0380 Generated |
591708919␊101523700300␊1866700570␊-42394553182␊i…
|
6 lines | |
| 000418 | gen-0381 Generated |
5729047792␊invalid␊1375183850␊1459556615␊1166951…
|
16 lines | |
| 000419 | gen-0382 Generated |
3109121831␊123362969556␊11865210272␊2124687302␊-…
|
7 lines | |
| 000420 | gen-0383 Generated |
2303889589␊invalid␊invalid␊
|
3 lines | |
| 000421 | gen-0384 Generated |
invalid␊999799201␊389696293␊1547130743␊invalid␊-…
|
9 lines | |
| 000422 | gen-0385 Generated |
512698783␊1385860488␊22658204097␊invalid␊1191599…
|
11 lines | |
| 000423 | gen-0386 Generated |
639570359␊-31908969694␊163028645␊1915074692␊-361…
|
9 lines | |
| 000424 | gen-0387 Generated |
invalid␊203081776121␊
|
2 lines | |
| 000425 | gen-0388 Generated |
1359776754␊2000500239␊2290106844␊216079588517␊94…
|
11 lines | |
| 000426 | gen-0389 Generated |
1657294690␊163841411763␊107191576␊invalid␊invali…
|
7 lines | |
| 000427 | gen-0390 Generated |
90518143484␊invalid␊1964275820␊240629158930␊inva…
|
16 lines | |
| 000428 | gen-0391 Generated |
invalid␊2743415088␊343909159␊95321117481␊1702239…
|
9 lines | |
| 000429 | gen-0392 Generated |
406355173␊2655798294␊416949829␊702598138␊
|
4 lines | |
| 000430 | gen-0393 Generated |
1501171748␊2187702909␊invalid␊452698524␊10999251…
|
7 lines | |
| 000431 | gen-0394 Generated |
196043367634␊1356091490␊95996863549␊1467701456␊i…
|
16 lines | |
| 000432 | gen-0395 Generated |
539796893␊8519744801␊822522696␊169761731623␊1952…
|
6 lines | |
| 000433 | gen-0396 Generated |
invalid␊1035534685␊
|
2 lines | |
| 000434 | gen-0397 Generated |
136065471010␊
|
1 line | |
| 000435 | gen-0398 Generated |
-23395176652␊
|
1 line | |
| 000436 | gen-0399 Generated |
invalid␊1008270520␊812392420␊2542756822␊85405860…
|
16 lines |
Where these rules come from
RFC 9110 §5.6.7
defines HTTP-date in three forms: IMF-fixdate, the obsolete RFC 850 form and ANSI C
asctime. Two-digit years use RFC 6265 §5.1.1’s
fixed pivot, so the answers never depend on the clock. Every answer is agreed by a
direct reading of the ABNF and by Python’s datetime; the suite’s own
tests add V8’s Date#toUTCString. Of the 80,281 lines, 9,435 are valid.
Cases from other parsers’ tests list what each parser says beside every line. Where a parser accepts more than RFC 9110 allows, or reads a line differently, the case says why.
- RFC 9110 — 1 case
- RFC 9111 — 1 case
- RFC 6265 — 1 case
-
Go’s net/http tests
at
f9d574dc8740— 1 case -
Rust httpdate’s tests
at
53df52094835— 1 case -
curl’s tests
at
d5ec024cf205— 1 case -
Django’s tests
at
8afdd2bda106— 1 case -
CPython’s http.cookiejar tests
at
0a1d601b4cbf— 3 cases