diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-15 16:10:30 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-15 16:10:30 +0300 |
commit | f54fbeed22204a41318913484e73b8b29afd3394 (patch) | |
tree | 350960b503db6008d0af3ad0e7cc1d6c50943ced /src/microhttpd/test_postprocessor.c | |
parent | ca217985d98968b38044cb5a76dd2c95eed3001a (diff) | |
download | libmicrohttpd-f54fbeed22204a41318913484e73b8b29afd3394.tar.gz libmicrohttpd-f54fbeed22204a41318913484e73b8b29afd3394.zip |
test_postprocessor: added more tests for urlencoding
Diffstat (limited to 'src/microhttpd/test_postprocessor.c')
-rw-r--r-- | src/microhttpd/test_postprocessor.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c index bb17d764..764c28f9 100644 --- a/src/microhttpd/test_postprocessor.c +++ b/src/microhttpd/test_postprocessor.c | |||
@@ -290,6 +290,25 @@ test_urlencoding (void) | |||
290 | errorCount += test_urlencoding_case (URL_EMPTY_VALUE_START, | 290 | errorCount += test_urlencoding_case (URL_EMPTY_VALUE_START, |
291 | URL_EMPTY_VALUE_END, | 291 | URL_EMPTY_VALUE_END, |
292 | URL_EMPTY_VALUE_DATA); | 292 | URL_EMPTY_VALUE_DATA); |
293 | |||
294 | errorCount += test_urlencoding_case (URL_START, | ||
295 | URL_END, | ||
296 | URL_DATA "\n"); | ||
297 | errorCount += test_urlencoding_case (URL_NOVALUE1_START, | ||
298 | URL_NOVALUE1_END, | ||
299 | URL_NOVALUE1_DATA "\n"); | ||
300 | errorCount += test_urlencoding_case (URL_NOVALUE2_START, | ||
301 | URL_NOVALUE2_END, | ||
302 | URL_NOVALUE2_DATA "\n"); | ||
303 | errorCount += test_urlencoding_case (URL_NOVALUE3_START, | ||
304 | URL_NOVALUE3_END, | ||
305 | URL_NOVALUE3_DATA "\n"); | ||
306 | errorCount += test_urlencoding_case (URL_NOVALUE4_START, | ||
307 | URL_NOVALUE4_END, /* With advance */ | ||
308 | URL_NOVALUE4_DATA "\n"); | ||
309 | errorCount += test_urlencoding_case (URL_EMPTY_VALUE_START, | ||
310 | URL_EMPTY_VALUE_END, | ||
311 | URL_EMPTY_VALUE_DATA "\n"); | ||
293 | if (0 != errorCount) | 312 | if (0 != errorCount) |
294 | fprintf (stderr, | 313 | fprintf (stderr, |
295 | "Test failed in line %u with %u errors\n", | 314 | "Test failed in line %u with %u errors\n", |