Skip to content

Commit

Permalink
Update test-amalgamate.cpp
Browse files Browse the repository at this point in the history
Check the return values of `url.username()` and `url.password()`.
  • Loading branch information
rmisev committed Sep 6, 2023
1 parent 08f05d3 commit 0b19cb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test-amalgamate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ TEST_CASE("url constructor & getters") {
CHECK(url.href() == "https://user:[email protected]:321/seg0/seg1/seg2?a=b#frag");
CHECK(url.origin() == "https://example.com:321");
CHECK(url.protocol() == "https:");
CHECK(url.username() == "user");
CHECK(url.password() == "psw");
CHECK(url.host() == "example.com:321");
CHECK(url.hostname() == "example.com");
CHECK(url.port() == "321");
Expand Down

0 comments on commit 0b19cb7

Please sign in to comment.