summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTom Simmons <tomasimmons@gmail.com>2018-09-07 22:26:06 -0400
committerTom Simmons <tomasimmons@gmail.com>2018-09-07 22:26:06 -0400
commit75fb3de74598ee463985ad9f91ff5c5c33f0cc18 (patch)
tree88f4ed3e8b6035e9c84b2429d97309f1859433ab /src/test
parent01e2f3781c58a3033b41519229cb2049cb845d82 (diff)
downloadjava-language-server-75fb3de74598ee463985ad9f91ff5c5c33f0cc18.zip
Account for backslashes
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/UrlsTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/UrlsTest.java b/src/test/java/org/javacs/UrlsTest.java
index 8ede698..4c2a9da 100644
--- a/src/test/java/org/javacs/UrlsTest.java
+++ b/src/test/java/org/javacs/UrlsTest.java
@@ -11,7 +11,7 @@ public class UrlsTest {
@Test
public void of_whenPathStartsWithSlash() throws Exception {
- URL actual = Urls.of("/a/b/c");
+ URL actual = Urls.of("file:///a/b/c");
assertEquals("file", actual.getProtocol());
assertEquals("/a/b/c", actual.getPath());
}
@@ -37,6 +37,7 @@ public class UrlsTest {
@Test
public void isSystemPath_whenPathStartsWithDriveLetter() {
assertTrue(Urls.isSystemPath("c:/a/b/c"));
+ assertTrue(Urls.isSystemPath("c:\\a\\b\\c"));
}
@Test