Skip to content

Commit

Permalink
Test for html_link::detectUriKind("/")
Browse files Browse the repository at this point in the history
  • Loading branch information
veloman-yunkan committed Jul 5, 2022
1 parent 81a4093 commit 3c5c32e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/tools-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ TEST(tools, uriKind)
EXPECT_EQ(UriKind::OTHER, uriKind("showlocation.cgi?geo:12.34,56.78"));
EXPECT_EQ(UriKind::OTHER, uriKind("/xyz/javascript:console.log('hello, world!')"));

EXPECT_EQ(UriKind::OTHER, uriKind("/"));
EXPECT_EQ(UriKind::OTHER, uriKind("/api/data:text/plain;charset=UTF-8,qwerty"));
EXPECT_EQ(UriKind::OTHER, uriKind("../img/logo.png"));
EXPECT_EQ(UriKind::OTHER, uriKind("style.css"));
Expand Down

0 comments on commit 3c5c32e

Please sign in to comment.