Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Jun 23, 2024
1 parent 6bacbe0 commit 1b418ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/PentabarfKit/ImportExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ enum EventParsingError: Error {
extension Event {
private static let errorMessage: String = "ERROR"

private static var tracks: [String:Track] = [:]
private static var tracks: [String: Track] = [:]

static func from(_ element: XML.Element, date: Date) throws -> Self {
let language = ImportHelper.filterElementByName(element, name: "language") ?? "en"
Expand Down
1 change: 0 additions & 1 deletion Sources/PentabarfKit/Models/Person.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extension Person: Hashable {
return lhs.id == rhs.id
}


public func hash(into hasher: inout Hasher) {
hasher.combine(id)
}
Expand Down
1 change: 0 additions & 1 deletion Sources/PentabarfKit/Models/Room.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extension Room: Hashable {
return lhs.name == rhs.name
}


public func hash(into hasher: inout Hasher) {
hasher.combine(name)
}
Expand Down
1 change: 0 additions & 1 deletion Sources/PentabarfKit/Models/Track.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extension Track: Hashable {
return lhs.name == rhs.name
}


public func hash(into hasher: inout Hasher) {
hasher.combine(name)
}
Expand Down
4 changes: 3 additions & 1 deletion Tests/PentabarfKitTests/PentabarfKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ final class PentabarfKitTests: XCTestCase {
var conference = try await PentabarfLoader.fetchConference(URL(fileURLWithPath: path!))

XCTAssertNotNil(conference)

let event = conference?.events.first { !$0.attachments.isEmpty }
XCTAssertNotNil(event)

let attachment = event!.attachments.first
// swiftlint:disable:next line_length
XCTAssertEqual(attachment?.title, "Making a community-managed FOSS project sustainable in the medium- to long-term")
// swiftlint:disable:next line_length
XCTAssertEqual(attachment?.url.absoluteString, "https://fosdem.org/2022/schedule/event/community_sustainable/attachments/audio/5230/export/events/attachments/community_sustainable/audio/5230/makingacommunitymanagedfossprojectsustainable.pdf")
XCTAssertEqual(attachment?.type, "audio")
}
Expand Down

0 comments on commit 1b418ad

Please sign in to comment.