summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Allow file argumentBjorn Reese2014-02-151-7/+17
|
* make output for new custom tests more similar to parsing test outputRyan Flynn2014-02-151-2/+2
|
* update copyright and emailLloyd Hilaiel2014-02-154-4/+4
|
* add a custom api test facilityLloyd Hilaiel2014-02-156-7/+90
|
* move tests down directoryLloyd Hilaiel2014-02-15119-0/+0
|
* Removed bash dependency in test/run_tests.sh and updated for NetBSD.Steve Gravrock2012-12-221-4/+4
|
* Build fix for NetBSD and other systems where /bin/sh isn't bashSteve Gravrock2012-12-151-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 win32Lloyd Hilaiel2011-04-252-11/+14
|
* fix a bug in overflow detection in integer parsing routine, add overflow ↵Lloyd Hilaiel2011-04-256-0/+12
| | | | tests (now that we always rep integers in 64bit entities regardless of arch word size)
* reduce output noise during testingLloyd Hilaiel2011-04-221-1/+1
|
* 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-2123-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 configLloyd Hilaiel2011-04-206-19/+40
|
* yajl 2 will be relicensed under the ISC license. same idea, fewer bytes.Lloyd Hilaiel2011-04-202-59/+27
|
* add a test case which demonstrates how new parsing configuration in yajl 2.x ↵Lloyd Hilaiel2011-04-202-0/+4
| | | | closes #7
* fixes to testing system. allowGarbage is misnamed, it actually means ↵Lloyd Hilaiel2011-04-207-6/+6
| | | | *forbid* garbage
* add a missing test case - multiple integers in a streamLloyd Hilaiel2011-04-201-0/+1
|
* Parse null bytes correctly.Conrad Irwin2011-04-202-0/+1
| | | | Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com>
* o rework yajl apiLloyd Hilaiel2011-04-2019-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.xLloyd Hilaiel2011-04-202-0/+9
|\
| * add test case and goldfile contributed by karl adamLloyd Hilaiel2011-02-162-0/+9
| |
* | Merge branch 'master' into 2.xLloyd Hilaiel2010-08-101-9/+13
|\ \ | |/
| * ensure we're using the echo program on the path, at least in snow leopard ↵Lloyd Hilaiel2010-08-101-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 W32John Stamp2010-08-101-3/+5
| | | | | | | | 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
|/
* remove bash dependency in run_tests.sh, contributed by http://github.com/baptLloyd Hilaiel2010-08-101-17/+20
|
* Mark project as 'C' project so C++ compiler is not required to beBrian Maher2010-01-301-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 Hilaiel2010-01-082-2/+2
|
* always use a format string with fprintf, silence compiler warnings. shhh.1.0.6Lloyd Hilaiel2009-09-121-1/+1
|
* test/cases/integers.json.gold: Adapt test-case for 64bit architecture.Florian Forster2009-08-272-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 runnerLloyd Hilaiel2009-05-171-1/+1
|
* fix bug in UTF8 validation, add unit tests for 3 and 4 byte utf8 stringsLloyd Hilaiel2009-04-244-0/+15
|
* 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-0141-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 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.
* Tests of unbalanced structure; these work and help show that yajlTimothy J. Wood2009-02-268-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. Wood2009-02-256-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. Wood2009-02-252-0/+2
|
* Add tests for top-level bool and null constants.Timothy J. Wood2009-02-256-0/+6
|
* Allow the caller to specify a test binary to use.Timothy J. Wood2009-02-251-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 formatLloyd Hilaiel2009-02-161-4/+4
|
* build with gcc flags suggested by Mark de Does, clean up resultant compiler ↵Lloyd Hilaiel2009-02-161-13/+13
| | | | warnings
* updated TODO, removing 'make install' target, adding more language on the ↵Lloyd Hilaiel2008-12-242-0/+2
| | | | number @ eof bug and a testcase to demonstrate the problem.
* introduction of yajl_number callback to allow clients to handle arbitraryllooyd2008-04-253-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 win32lloydh2008-01-141-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.lloydh2008-01-141-1/+2
| | | | git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@95 e775cfb5-b74b-0410-aad5-5bebe4a96390
* test cases gold output non-bufferedlloydh2008-01-147-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, addlloydh2007-12-221-2/+2
| | | | | | | familiar top level make targets. git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@87 e775cfb5-b74b-0410-aad5-5bebe4a96390