Skip to content

Commit 8f58694

Browse files
committed
Make testing logic work on Windows
1 parent 1d4e8d9 commit 8f58694

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ScipDotnet.Tests/SnapshotTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ private Dictionary<String, SymbolInformation> SymbolTable(Document document)
213213
private string FormatDocument(Index index, Document document)
214214
{
215215
var sb = new StringBuilder();
216-
var inputPath = Path.Join(
217-
index.Metadata.ProjectRoot.Replace("file://", String.Empty),
218-
document.RelativePath);
216+
var inputPath = new Uri(index.Metadata.ProjectRoot + "/" + document.RelativePath).LocalPath;
219217
var occurrences = document.Occurrences.ToList();
220218
occurrences.Sort(CompareOccurrences);
221219
var symtab = SymbolTable(document);

0 commit comments

Comments
 (0)