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