Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Tests/SyntaxDocTests/DocumentationExampleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ internal struct DocumentationExampleTests {
@Test("Quick Start Guide examples work correctly")
internal func validateQuickStartGuideExamples() throws {
let quickStartFile = try Settings.resolveFilePath(
"Sources/SyntaxKit/Documentation.docc/Tutorials/Quick-Start-Guide.md"
"Documentation.docc/Tutorials/Quick-Start-Guide.md"
)
let results = try testHarness.validateFile(at: quickStartFile)

Expand All @@ -57,7 +57,7 @@ internal struct DocumentationExampleTests {
@Test("Creating Macros tutorial examples work correctly")
internal func validateMacroTutorialExamples() throws {
let macroTutorialFile = try Settings.resolveFilePath(
"Sources/SyntaxKit/Documentation.docc/Tutorials/Creating-Macros-with-SyntaxKit.md"
"Documentation.docc/Tutorials/Creating-Macros-with-SyntaxKit.md"
)
let results = try testHarness.validateFile(at: macroTutorialFile)

Expand Down
7 changes: 6 additions & 1 deletion Tests/SyntaxDocTests/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ internal enum Settings {
return .init(fileURLWithPath: filePath)
}
} else {
return Self.projectRoot.appendingPathComponent(filePath)
#if os(Android)
let resolvedPath = filePath
#else
let resolvedPath = "Sources/SyntaxKit/" + filePath
#endif
return Self.projectRoot.appendingPathComponent(resolvedPath)
}
}
}
Loading