Skip to content

Commit 7ad9156

Browse files
committed
test: add empty input tests
1 parent f11cc66 commit 7ad9156

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/url_search_params.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ TEST(url_search_params, string_constructor) {
116116
SUCCEED();
117117
}
118118

119+
TEST(url_search_params, string_constructor_with_empty_input) {
120+
auto p = ada::url_search_params("");
121+
ASSERT_EQ(p.to_string(), "");
122+
ASSERT_EQ(p.size(), 0);
123+
SUCCEED();
124+
}
125+
119126
TEST(url_search_params, string_constructor_without_value) {
120127
auto p = ada::url_search_params("a=b&c");
121128
ASSERT_EQ(p.to_string(), "a=b&c=");

0 commit comments

Comments
 (0)