Skip to content

Commit 1819087

Browse files
quitefornwall
authored andcommitted
Add tests for URL fragment
1 parent 366a61f commit 1819087

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/test/java/com/termux/app/TermuxActivityTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public void testExtractUrls() {
2222

2323
assertUrlsAre("hello http://example.com world and http://more.example.com with secure https://more.example.com",
2424
"http://example.com", "http://more.example.com", "https://more.example.com");
25+
26+
assertUrlsAre("hello https://example.com/#bar https://example.com/foo#bar",
27+
"https://example.com/#bar", "https://example.com/foo#bar");
2528
}
2629

2730
}

0 commit comments

Comments
 (0)