summaryrefslogtreecommitdiff
path: root/test/yajl_test.c
Commit message (Collapse)AuthorAgeFilesLines
* move tests down directoryLloyd Hilaiel2014-02-151-281/+0
|
* test harness fixes on win32Lloyd Hilaiel2011-04-251-3/+3
|
* rename yajl_parse_complete to yajl_complete_parse. the latter is correctly ↵Lloyd Hilaiel2011-04-211-1/+1
| | | | an imperative, while the former might be confused for a question.
* rework programmatic configuration of yajl. both generator and parser now ↵Lloyd Hilaiel2011-04-211-14/+11
| | | | have a yajl_XXX_config() function that accepts varargs so that configuration is simple, and new config options can be added in the future that preserve backwards binary compatibility. closes #23.
* add tests cases for partial value configLloyd Hilaiel2011-04-201-17/+23
|
* yajl 2 will be relicensed under the ISC license. same idea, fewer bytes.Lloyd Hilaiel2011-04-201-30/+14
|
* o rework yajl apiLloyd Hilaiel2011-04-201-22/+25
| | | | | | | | | | | | | | | | | | | | | | | | | - remove yajl_status_parse_incomplete, replace with three flag settings - yajl_allow_multiple_values - yajl_forbid_trailing_garbage - yajl_forbid_partial_values In the new model, callers must consistently call yajl_parse_complete and check it's return. Two new parse errors have been introduced: "premature EOF" and "trailing garbage". yajl_test.c demonstrates the simplifying effect on calling code. adds 3 flags to yajl_test -g forbids trailing garbage -p forbids partial values -m allows multiple values to be parsed. and complementary tests. lth: Addresses the majority of issue #24. gno is awesomesauce. Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com>
* use size_t rather than unsigned int for representing buffer lengths for yajl 2.xLloyd Hilaiel2010-08-101-10/+10
|
* re-introduce long long type for integer representation now that we require C99Lloyd Hilaiel2010-08-101-2/+2
|
* update all them dates.Lloyd Hilaiel2010-01-081-1/+1
|
* always use a format string with fprintf, silence compiler warnings. shhh.1.0.6Lloyd Hilaiel2009-09-121-1/+1
|
* fix realloc bug in yajl test case runnerLloyd Hilaiel2009-05-171-1/+1
|
* fflush output in yajl_test to attempt to get deterministic output ordering ↵1.0.0Lloyd Hilaiel2009-04-011-0/+2
| | | | across systems (msys+win32 being the problem child)
* * BREAKING API CHANGE: allow client to specify memory allocation routinesLloyd Hilaiel2009-04-011-3/+70
| | | | | | | | | * bump yajl version to 1.0.0 * update TODO list, removing completed tasks * update yajl_test to override allocation routines and count allocations/frees, providing an automated standalone way to validate we're not leaky * update all copyright dates * update all .gold files with new test output * update ChangeLog in preparation for 1.0.0 release
* fix error in win32 build, don't delcare variables in the in middle of a functionLloyd Hilaiel2009-02-261-2/+2
|
* A simple fix for lonely_number.jsonTimothy J. Wood2009-02-261-12/+19
| | | | | | | | | | | | - Add new parser function, yajl_parse_complete(). This is defined to parse any buffered data assuming that there is no more input forthcoming and may issue callbacks based on that parse. - Implement this as parsing a single space character. This is sufficient to handle the problem case, a number at the end of the stream. - Updated yagl_test.c to call this when the stream ends.
* build with gcc flags suggested by Mark de Does, clean up resultant compiler ↵Lloyd Hilaiel2009-02-161-13/+13
| | | | warnings
* introduction of yajl_number callback to allow clients to handle arbitraryllooyd2008-04-251-2/+3
| | | | | | | precision numbers in JSON data. git-svn-id: http://yajl-c.googlecode.com/svn/trunk@102 e775cfb5-b74b-0410-aad5-5bebe4a96390
* fix windows warning with a cast.lloydh2008-01-141-1/+2
| | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@95 e775cfb5-b74b-0410-aad5-5bebe4a96390
* Add support for UTF8 validation during parsing, fiddle testing to lloydh2007-11-111-18/+38
| | | | | | | | constantly stress stream parsing (use a parse buffer ranging in size from 1 to 32 bytes) git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@77 e775cfb5-b74b-0410-aad5-5bebe4a96390
* fix all warnings under windows.lloydh2007-07-261-7/+7
| | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@67 e775cfb5-b74b-0410-aad5-5bebe4a96390
* support comments, configurable with an argument to yajl_alloc.lloydh2007-07-251-5/+20
| | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@63 e775cfb5-b74b-0410-aad5-5bebe4a96390
* move all files to trunk.lloydh2007-07-171-0/+178
git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@60 e775cfb5-b74b-0410-aad5-5bebe4a96390