diff --git a/tests/basic_tests.cpp b/tests/basic_tests.cpp index 79ccbc667..3cbe75e82 100644 --- a/tests/basic_tests.cpp +++ b/tests/basic_tests.cpp @@ -430,4 +430,14 @@ TYPED_TEST(basic_tests, nodejs_undici_2971) { out->get_href(), R"(https://non-ascii-location-header.sys.workers.dev/%EC%95%88%EB%85%95)"); SUCCEED(); +} + +TYPED_TEST(basic_tests, path_setter_bug) { + std::string_view base = "blob:/?"; + auto base_url = ada::parse(base); + ASSERT_TRUE(base_url); + ASSERT_TRUE(base_url->validate()); + ASSERT_TRUE(base_url->set_pathname("//..")); + ASSERT_TRUE(base_url->validate()); + SUCCEED(); } \ No newline at end of file