aboutsummaryrefslogtreecommitdiff
path: root/test/testdata
AgeCommit message (Collapse)AuthorFilesLines
2009-09-13load: Check for integer and real overlfows and underflowsPetri Lehtinen2-0/+50
2009-09-08Add stripped unit tests for decoderPetri Lehtinen2-0/+263
That is, test cases where there's no newline or other whitespace at the beginning or end of input. This was implemented by adding a --strip option to split-testfile to strip the input file after writing it. The actual test JSON texts are the same as testdata/invalid and testdata/valid. The expected output of the invalid cases had to be adjusted a bit: because there's no newline at the end, some of the line numbers needed to be changed.
2009-08-25Distribute appropriate filesPetri Lehtinen1-0/+1
2009-08-24Detect garbage near EOF in json_loadf() and json_load_file()Petri Lehtinen1-0/+11
2009-07-28Fix some memory leaks and invalid memory referencesPetri Lehtinen1-0/+5
2009-07-28Enhance test systemPetri Lehtinen3-82/+85
- Tests are now named - Testlogs are preserved between runs - Tests can be run through Valgrind Memcheck tool
2009-07-26Expand encoder test coveragePetri Lehtinen1-0/+2
2009-07-26Expand parser and Unicode test coveragePetri Lehtinen3-1/+110
2009-07-16Implement support for \u escapesPetri Lehtinen2-0/+28
2009-07-14Report errors from lexical and stream level in parserPetri Lehtinen1-5/+5
Before, only the syntax level (parse_*) was able to set the error string. This patch fixes the situation so that lexical (lex_*) and stream (stream_*) levels can report detailed error messages. Also, instead of 0, EOF is now returned by stream on error.
2009-07-13Streamify the loaderPetri Lehtinen1-7/+7
It's no longer needed to load the whole input into a string and then parse from the string. Instead, the input is read as needed from a string or file.
2009-07-09Add some testsPetri Lehtinen2-0/+195