Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow file argument | Bjorn Reese | 2014-02-15 | 1 | -7/+17 |
| | |||||
* | make output for new custom tests more similar to parsing test output | Ryan Flynn | 2014-02-15 | 1 | -2/+2 |
| | |||||
* | update copyright and email | Lloyd Hilaiel | 2014-02-15 | 4 | -4/+4 |
| | |||||
* | add a custom api test facility | Lloyd Hilaiel | 2014-02-15 | 6 | -7/+90 |
| | |||||
* | move tests down directory | Lloyd Hilaiel | 2014-02-15 | 119 | -0/+0 |
| | |||||
* | Removed bash dependency in test/run_tests.sh and updated for NetBSD. | Steve Gravrock | 2012-12-22 | 1 | -4/+4 |
| | |||||
* | Build fix for NetBSD and other systems where /bin/sh isn't bash | Steve Gravrock | 2012-12-15 | 1 | -1/+1 |
| | | | | | | Fixed by explicitly using /bin/bash. Removing bash-isms would also work. But /bin/sh is bash on most developers' systems, so using that shell explicitly seems like it's less likely to break in the future. | ||||
* | test harness fixes on win32 | Lloyd Hilaiel | 2011-04-25 | 2 | -11/+14 |
| | |||||
* | fix a bug in overflow detection in integer parsing routine, add overflow ↵ | Lloyd Hilaiel | 2011-04-25 | 6 | -0/+12 |
| | | | | tests (now that we always rep integers in 64bit entities regardless of arch word size) | ||||
* | reduce output noise during testing | Lloyd Hilaiel | 2011-04-22 | 1 | -1/+1 |
| | |||||
* | rename yajl_parse_complete to yajl_complete_parse. the latter is correctly ↵ | Lloyd Hilaiel | 2011-04-21 | 1 | -1/+1 |
| | | | | an imperative, while the former might be confused for a question. | ||||
* | rework programmatic configuration of yajl. both generator and parser now ↵ | Lloyd Hilaiel | 2011-04-21 | 23 | -42/+47 |
| | | | | 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 config | Lloyd Hilaiel | 2011-04-20 | 6 | -19/+40 |
| | |||||
* | yajl 2 will be relicensed under the ISC license. same idea, fewer bytes. | Lloyd Hilaiel | 2011-04-20 | 2 | -59/+27 |
| | |||||
* | add a test case which demonstrates how new parsing configuration in yajl 2.x ↵ | Lloyd Hilaiel | 2011-04-20 | 2 | -0/+4 |
| | | | | closes #7 | ||||
* | fixes to testing system. allowGarbage is misnamed, it actually means ↵ | Lloyd Hilaiel | 2011-04-20 | 7 | -6/+6 |
| | | | | *forbid* garbage | ||||
* | add a missing test case - multiple integers in a stream | Lloyd Hilaiel | 2011-04-20 | 1 | -0/+1 |
| | |||||
* | Parse null bytes correctly. | Conrad Irwin | 2011-04-20 | 2 | -0/+1 |
| | | | | Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com> | ||||
* | o rework yajl api | Lloyd Hilaiel | 2011-04-20 | 19 | -25/+93 |
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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> | ||||
* | Merge branch 'master' into 2.x | Lloyd Hilaiel | 2011-04-20 | 2 | -0/+9 |
|\ | |||||
| * | add test case and goldfile contributed by karl adam | Lloyd Hilaiel | 2011-02-16 | 2 | -0/+9 |
| | | |||||
* | | Merge branch 'master' into 2.x | Lloyd Hilaiel | 2010-08-10 | 1 | -9/+13 |
|\ \ | |/ | |||||
| * | ensure we're using the echo program on the path, at least in snow leopard ↵ | Lloyd Hilaiel | 2010-08-10 | 1 | -6/+8 |
| | | | | | | | | running 'echo -n' under /bin/sh outputs the '-n' rather than parsing it as an argument which means "omit trailing newline" | ||||
| * | Fix test for W32 | John Stamp | 2010-08-10 | 1 | -3/+5 |
| | | | | | | | | Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com> | ||||
* | | use size_t rather than unsigned int for representing buffer lengths for yajl 2.x | Lloyd Hilaiel | 2010-08-10 | 1 | -10/+10 |
| | | |||||
* | | re-introduce long long type for integer representation now that we require C99 | Lloyd Hilaiel | 2010-08-10 | 1 | -2/+2 |
|/ | |||||
* | remove bash dependency in run_tests.sh, contributed by http://github.com/bapt | Lloyd Hilaiel | 2010-08-10 | 1 | -17/+20 |
| | |||||
* | Mark project as 'C' project so C++ compiler is not required to be | Brian Maher | 2010-01-30 | 1 | -0/+4 |
| | | | | | | installed. Also, on Ubuntu, when I explicitly set the build output directory, the tests don't run because the run_tests.sh script assumes that ../build is where the build output directory is. | ||||
* | update all them dates. | Lloyd Hilaiel | 2010-01-08 | 2 | -2/+2 |
| | |||||
* | always use a format string with fprintf, silence compiler warnings. shhh.1.0.6 | Lloyd Hilaiel | 2009-09-12 | 1 | -1/+1 |
| | |||||
* | test/cases/integers.json.gold: Adapt test-case for 64bit architecture. | Florian Forster | 2009-08-27 | 2 | -3/+2 |
| | | | | | | | | | longs are 64bit wide, at least on eGLibc/Linux/AMD64, therefore 2^31 is not an integer overflow. I've removed the integer overflow because the exact limit is machine dependent and as far as I've seen the RFC doesn't make any assumptions towards minimum/maximum width of integers. | ||||
* | fix realloc bug in yajl test case runner | Lloyd Hilaiel | 2009-05-17 | 1 | -1/+1 |
| | |||||
* | fix bug in UTF8 validation, add unit tests for 3 and 4 byte utf8 strings | Lloyd Hilaiel | 2009-04-24 | 4 | -0/+15 |
| | |||||
* | fflush output in yajl_test to attempt to get deterministic output ordering ↵1.0.0 | Lloyd Hilaiel | 2009-04-01 | 1 | -0/+2 |
| | | | | across systems (msys+win32 being the problem child) | ||||
* | * BREAKING API CHANGE: allow client to specify memory allocation routines | Lloyd Hilaiel | 2009-04-01 | 41 | -4/+110 |
| | | | | | | | | | * 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 function | Lloyd Hilaiel | 2009-02-26 | 1 | -2/+2 |
| | |||||
* | A simple fix for lonely_number.json | Timothy J. Wood | 2009-02-26 | 1 | -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. | ||||
* | Tests of unbalanced structure; these work and help show that yajl | Timothy J. Wood | 2009-02-26 | 8 | -0/+8 |
| | | | | | doesn't interpret this as an error it should handle, but something that the higher level code should deal with in its representation. | ||||
* | Added test cases where one of the top-level constants is followed by garbage. | Timothy J. Wood | 2009-02-25 | 6 | -0/+6 |
| | | | | | | | | These succeed right now, but that seems questionable since the the following character is part of the same token. A failure *would* be issued if the parser knew that the stream was at an end, I think. Still, the user of the library might erroneously handle the null/true/false when yajl could emit the error sooner. | ||||
* | Test case for a top-level empty string. | Timothy J. Wood | 2009-02-25 | 2 | -0/+2 |
| | |||||
* | Add tests for top-level bool and null constants. | Timothy J. Wood | 2009-02-25 | 6 | -0/+6 |
| | |||||
* | Allow the caller to specify a test binary to use. | Timothy J. Wood | 2009-02-25 | 1 | -8/+11 |
| | | | | This is useful for integrating with non-cmake build systems such as Xcode. | ||||
* | fix double dest gold file for warning free new double format | Lloyd Hilaiel | 2009-02-16 | 1 | -4/+4 |
| | |||||
* | build with gcc flags suggested by Mark de Does, clean up resultant compiler ↵ | Lloyd Hilaiel | 2009-02-16 | 1 | -13/+13 |
| | | | | warnings | ||||
* | updated TODO, removing 'make install' target, adding more language on the ↵ | Lloyd Hilaiel | 2008-12-24 | 2 | -0/+2 |
| | | | | number @ eof bug and a testcase to demonstrate the problem. | ||||
* | introduction of yajl_number callback to allow clients to handle arbitrary | llooyd | 2008-04-25 | 3 | -6/+8 |
| | | | | | | | precision numbers in JSON data. git-svn-id: http://yajl-c.googlecode.com/svn/trunk@102 e775cfb5-b74b-0410-aad5-5bebe4a96390 | ||||
* | run_tests.sh now works on both unix and win32 | lloydh | 2008-01-14 | 1 | -4/+14 |
| | | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@96 e775cfb5-b74b-0410-aad5-5bebe4a96390 | ||||
* | fix windows warning with a cast. | lloydh | 2008-01-14 | 1 | -1/+2 |
| | | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@95 e775cfb5-b74b-0410-aad5-5bebe4a96390 | ||||
* | test cases gold output non-buffered | lloydh | 2008-01-14 | 7 | -7/+7 |
| | | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@94 e775cfb5-b74b-0410-aad5-5bebe4a96390 | ||||
* | add lightweight build system wrapper, fix shared lib symlinks, add | lloydh | 2007-12-22 | 1 | -2/+2 |
| | | | | | | | familiar top level make targets. git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@87 e775cfb5-b74b-0410-aad5-5bebe4a96390 |