summaryrefslogtreecommitdiff
path: root/json-glib/tests/parser-test.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Rename test binariesEmmanuele Bassi2011-06-191-785/+0
| | | | It's pointless to add the '-test' suffix to files under the tests/ directory.
* build: Fix up the tests data pathEmmanuele Bassi2010-08-021-2/+2
| | | | | | Since we load up a test file from a directory, we should be using a path - otherwise this will break out-of-tree builds, e.g. when doing a distcheck.
* Exercise the stream API in JsonParserEmmanuele Bassi2010-08-021-0/+78
|
* parser: Add MISSING_COLON errorEmmanuele Bassi2010-03-191-1/+2
| | | | | | We identify a missing ':' separator between an object member name and its value, so it would be a good thing to actually have an error code for that.
* parser: Return specific error codesEmmanuele Bassi2010-03-191-9/+9
| | | | | | | | | The JsonScanner error reporting mechanism, which is basically GScanner's, sucks beyond belief. In order to report an error code we need to store it inside the JsonParser private structure and then use it when creating the GError inside the error handler. This, frankly, is quite stupid.
* parser-test: Add a case for double parsing in JsonObjectEmmanuele Bassi2010-03-181-1/+2
|
* parser-test: Add a complex nested object testEmmanuele Bassi2010-03-181-1/+20
| | | | | The nested object test should use something that's really complex: an object with a nested array and nested object definitions.
* tests: Add another trailing comma invalid testEmmanuele Bassi2010-03-051-1/+2
|
* tests: Add negative testsEmmanuele Bassi2010-03-011-0/+53
| | | | Verify that invalid JSON will trigger a parser error.
* tests: Move Parser and Generator testsEmmanuele Bassi2009-12-291-0/+632
Use the json-glib/tests directory for testing the data structures of JSON-GLib: node, object, array, parser and generator. The tests/ directory should be used for complex test cases, like the GObject and GBoxed integration - but the goal is to remove the top-level tests/ directory altogether, since the conformance test suite should be built along the json-glib/ directory.