4 ms·
Reminds me of TOML someone made a battery of tests that TOML parsers have to pass. https://github.com/BurntSushi/toml-test https://github.com/BurntSushi/toml-
by GhotiFish 13y ago
Reminds me of TOML
someone made a battery of tests that TOML parsers have to pass.
https://github.com/BurntSushi/toml-test https://github.com/BurntSushi/toml-test
It tests a ton of edge cases and communicates clear expectations. Test suites are a great way to enforce an implementations adherence to the specification.
- to3m 13y agoSadly there's nothing official for HTTP. This strikes me as a bit daft, because the spec allows a surprising amount of leeway, and there's actually a surprising amount to it in terms of annoying fiddly syntax. (I have no idea in whose interests this is intended to be, because both client and server have to both read and write this stuff. If they'd decided to make one case complicated so the other could be simple, that would be understandable, if barely less annoying.) And-HTTPD comes with some test data: http://www.and.org/and-httpd/ http://www.and.org/and-httpd/ (I've not looked into this in any depth, except to note its existence, but I wish I'd seen it when I was working on my server. The chap also has an amusing page about the HTTP spec, which I basically agree with: http://www.and.org/texts/server-http http://www.and.org/texts/server-http) For Web Sockets, there's a good test suite here, but again, it's not official: http://autobahn.ws/testsuite http://autobahn.ws/testsuite