Fix fragment bug.

This commit is contained in:
vlofgren 2022-08-18 16:47:59 +02:00
parent 2bc81e8e9a
commit 5cd552458a

View File

@ -4,6 +4,8 @@ import org.junit.jupiter.api.Test;
import java.net.URISyntaxException;
import static org.junit.jupiter.api.Assertions.assertEquals;
class EdgeUrlTest {
@Test
@ -13,8 +15,10 @@ class EdgeUrlTest {
@Test
public void testFragment() throws URISyntaxException {
var url = new EdgeUrl("https://memex.marginalia.nu/#here");
System.out.println(url.path);
assertEquals(
new EdgeUrl("https://memex.marginalia.nu/"),
new EdgeUrl("https://memex.marginalia.nu/#here")
);
}
@Test
public void testParam() throws URISyntaxException {