[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/03: test_postprocessor: added more cases for urlencod
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/03: test_postprocessor: added more cases for urlencoding |
Date: |
Wed, 15 Sep 2021 14:16:56 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 4273eea6d43571e678bdfaaff62848d2bef356ca
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 15 15:02:01 2021 +0300
test_postprocessor: added more cases for urlencoding
---
src/microhttpd/test_postprocessor.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/test_postprocessor.c
b/src/microhttpd/test_postprocessor.c
index e15aed61..ba7ba494 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -65,8 +65,16 @@ struct expResult exp_results[] = {
{"abc", NULL, NULL, NULL, ""},
{"x", NULL, NULL, NULL, "5"},
#define URL_NOVALUE2_END (URL_NOVALUE2_START + 2)
+#define URL_NOVALUE3_DATA "xyz="
+#define URL_NOVALUE3_START URL_NOVALUE2_END
+ {"xyz", NULL, NULL, NULL, ""},
+#define URL_NOVALUE3_END (URL_NOVALUE3_START + 1)
+#define URL_NOVALUE4_DATA "xyz"
+#define URL_NOVALUE4_START URL_NOVALUE3_END
+ {"xyz", NULL, NULL, NULL, NULL},
+#define URL_NOVALUE4_END (URL_NOVALUE4_START + 1)
#define URL_DATA "abc=def&x=5"
-#define URL_START URL_NOVALUE2_END
+#define URL_START URL_NOVALUE4_END
{"abc", NULL, NULL, NULL, "def"},
{"x", NULL, NULL, NULL, "5"},
#define URL_END (URL_START + 2)
@@ -272,6 +280,12 @@ test_urlencoding (void)
errorCount += test_urlencoding_case (URL_NOVALUE2_START,
URL_NOVALUE2_END,
URL_NOVALUE2_DATA);
+ errorCount += test_urlencoding_case (URL_NOVALUE3_START,
+ URL_NOVALUE3_END,
+ URL_NOVALUE3_DATA);
+ errorCount += test_urlencoding_case (URL_NOVALUE4_START,
+ URL_NOVALUE4_START, /* No advance */
+ URL_NOVALUE4_DATA);
errorCount += test_urlencoding_case (URL_EMPTY_VALUE_START,
URL_EMPTY_VALUE_END,
URL_EMPTY_VALUE_DATA);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.