Skip to content

Commit

Permalink
Skip failing basename test on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley committed Oct 11, 2024
1 parent 9829a93 commit 7fb76fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/InContextTests/Tests/BasenameDetailsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,22 @@ class BasenameDetailsTests: XCTestCase {
XCTAssertEqual(url.parentURL, "/posts/")
}

#if os(macOS)

// TODO: BasenameDetailsTests.testRootIndexNoTitle fails on Ubuntu #290
// https://github.com/inseven/incontext/issues/290
func testRootIndexNoTitle() {
let rootURL = URL(filePath: "/tmp", directoryHint: .isDirectory)
let url = URL(filePath: "index.markdown", relativeTo: rootURL)
let details = url.basenameDetails()
print(url.absoluteString)
XCTAssertNil(details.date)
XCTAssertNil(details.title)
XCTAssertNil(details.scale)
}

#endif

func testScale() throws {
let rootURL = URL(filePath: "/tmp", directoryHint: .isDirectory)
let url = URL(filePath: "[email protected]", relativeTo: rootURL)
Expand Down

0 comments on commit 7fb76fe

Please sign in to comment.