[riot-notifications] [RIOT-OS/RIOT] uri_parser: provide function to split query (#16695)

Martine Lenders notifications at github.com
Wed Aug 4 11:38:47 CEST 2021


@miri64 commented on this pull request.



> +    TEST_ASSERT_EQUAL_INT(-1, res);
+
+    INIT_URI_RESULTS("=&&");
+    res = uri_parser_split_query(&_uri_results, _params, ARRAY_SIZE(_params));
+    TEST_ASSERT_EQUAL_INT(-1, res);
+
+    INIT_URI_RESULTS("==");
+    res = uri_parser_split_query(&_uri_results, _params, ARRAY_SIZE(_params));
+    TEST_ASSERT_EQUAL_INT(-1, res);
+
+    INIT_URI_RESULTS("key=value&name=value=another");
+    res = uri_parser_split_query(&_uri_results, _params, ARRAY_SIZE(_params));
+    TEST_ASSERT_EQUAL_INT(-1, res);
+}
+
+

Removed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16695#discussion_r682455548
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210804/7bc58f7d/attachment-0001.htm>


More information about the notifications mailing list