Skip to content

Commit 5516bbb

Browse files
author
Vladimir Kotal
committed
use file separator
1 parent 6e4ec68 commit 5516bbb

File tree

1 file changed

+4
-1
lines changed
  • opengrok-indexer/src/test/java/org/opengrok/indexer/search

1 file changed

+4
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/search/HitTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
package org.opengrok.indexer.search;
2424

2525
import org.junit.Test;
26+
27+
import java.io.File;
28+
2629
import static org.junit.Assert.*;
2730

2831
/**
@@ -45,7 +48,7 @@ public void testFilename() {
4548
public void testPath() {
4649
Hit instance = new Hit("/foo/bar", null, null, false, false);
4750
assertEquals("/foo/bar", instance.getPath());
48-
assertEquals("/foo", instance.getDirectory());
51+
assertEquals(File.separator + "foo", instance.getDirectory());
4952
}
5053

5154
@Test

0 commit comments

Comments
 (0)