Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/wpt_urlpattern_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ using namespace simdjson;
constexpr std::string_view URL_PATTERN_TEST_DATA =
"wpt/urlpatterntestdata.json";

TEST(wpt_urlpattern_tests, parser_tokenize_basic_tests) {
auto parser = ada::url_pattern_helpers::url_pattern_parser(
ada::url_pattern_helpers::canonicalize_protocol, ada::url_pattern_helpers::generate_segment_wildcard_regexp(ada::url_pattern_compile_component_options::DEFAULT));

auto tokenize_result = ada::url_pattern_helpers::tokenize("*", ada::url_pattern_helpers::token_policy::STRICT);
ASSERT_TRUE(tokenize_result);
}

TEST(wpt_urlpattern_tests, parse_pattern_string_basic_tests) {
auto part_list = ada::url_pattern_helpers::parse_pattern_string(
"*", ada::url_pattern_compile_component_options::DEFAULT,
Expand Down
Loading