Fix fragment bug.

This commit is contained in:
vlofgren 2022-08-18 16:45:51 +02:00
parent a034e3245e
commit 2bc81e8e9a

View File

@ -10,6 +10,12 @@ class EdgeUrlTest {
public void testHashCode() throws URISyntaxException { public void testHashCode() throws URISyntaxException {
System.out.println(new EdgeUrl("https://memex.marginalia.nu").hashCode()); System.out.println(new EdgeUrl("https://memex.marginalia.nu").hashCode());
} }
@Test
public void testFragment() throws URISyntaxException {
var url = new EdgeUrl("https://memex.marginalia.nu/#here");
System.out.println(url.path);
}
@Test @Test
public void testParam() throws URISyntaxException { public void testParam() throws URISyntaxException {
System.out.println(new EdgeUrl("https://memex.marginalia.nu/index.php?id=1").toString()); System.out.println(new EdgeUrl("https://memex.marginalia.nu/index.php?id=1").toString());