Implemented phase 0 for the POC prototype in the Website service.
This commit is contained in:
1 parent
916df7e2f0
commit
717df5208c
31 files changed
+2351
-240
No files matched your search
@@ -0,0 +1,29 @@
|
||||
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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user