Skip to content

Commit

Permalink
extend tests and oss-fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jan 23, 2025
1 parent 57d3866 commit 9daa040
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions fuzz/url.dict
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Protocols
"ftp:"
"file:///"
"file:"
"http:"
"https:"
Expand Down
7 changes: 7 additions & 0 deletions tests/basic_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,3 +476,10 @@ TYPED_TEST(basic_tests, set_invalid_port) {
ASSERT_TRUE(url->is_valid);
SUCCEED();
}

TYPED_TEST(basic_tests, test_possible_asan) {
auto url = ada::parse<TypeParam>("file:///");
ASSERT_TRUE(url);
ASSERT_EQ(url->get_protocol(), "file:");
SUCCEED();
}

0 comments on commit 9daa040

Please sign in to comment.