diff options
| author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-29 02:18:34 +0000 |
|---|---|---|
| committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-29 02:18:34 +0000 |
| commit | 5f3bf70f039920d31a43a21f36a2ac02df41b7cd (patch) | |
| tree | d0a3df769bae253742fd5f1a59eb9713badb9ab5 | |
| parent | f23486a3217ed85ed4a0d7f95a10c4013250c987 (diff) | |
| download | json-c-5f3bf70f039920d31a43a21f36a2ac02df41b7cd.tar.gz | |
Make sure TEST_PARSE_CHUNKSIZE is valid if it's set.
| -rw-r--r-- | tests/test_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_parse.c b/tests/test_parse.c index 3c9ac82..d84b9d6 100644 --- a/tests/test_parse.c +++ b/tests/test_parse.c @@ -42,6 +42,7 @@ static void single_incremental_parse(const char *test_string, int clear_serializ json_object *all_at_once_obj, *new_obj; const char *all_at_once_str, *new_str; + assert(chunksize > 0); all_at_once_obj = json_tokener_parse(test_string); if (clear_serializer) do_clear_serializer(all_at_once_obj); |
