Files
ccn/Services/Website/Tests/Library/Cases/Internal/Enumerations/FormatTests.swift
T

30 lines
533 B
Swift

import Testing
@testable import WebsiteLibrary
@Suite(
"Format enumeration",
.tags(.enumeration)
)
struct FormatTests {
// MARK: Computed tests
@Test(arguments: zip(
Format.allCases,
[
"/search?format=single-issues",
"/search?format=manga",
"/search?format=trade-paperbacks",
"/search?format=hardcovers",
]
))
func `path`(
of format: Format,
expects path: String
) {
#expect(format.path == path)
}
}