TNetstring Test Suite
- From:
- Zed A. Shaw
- Date:
- 2011-03-30 @ 22:02
Hey Everyone,
I'm getting the tnetstrings payload generation and support working
really well in the proxymustdie branch, and I've created a test file
with payloads in it for people working on tnetstring support.
This file:
http://zedshaw.com/request_payloads.txt
Has a combo of JSON payloads and tnetstring payloads generated from the
nasty test cases I borrowed from andhttpd. If you look at the lines,
it's a mix so that you can test the following scenarios:
1. Parsing with tnetstring for each line should give you the raw JSON,
and then the next line the parsed result, wich you can compare.
2. Parsing with json should barf on the tnetstring lines.
3. If you write a "smart handler" it should be able to detect either and
adapt easily.
Try this data set out with your parsers and let me know how it actually
works.
--
Zed A. Shaw
http://zedshaw.com/