This PR contains the latest updates from the generic Website template, which have been added while working on #loud-amsterdam. Reviewed-on: #1 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
25 lines
396 B
Swift
25 lines
396 B
Swift
import Testing
|
|
|
|
@testable import WebsiteLibrary
|
|
|
|
@Suite(
|
|
"ImageWidth enumeration",
|
|
.tags(.enumeration)
|
|
)
|
|
struct ImageWidthTests {
|
|
|
|
// MARK: Computed tests
|
|
|
|
@Test(arguments: zip(
|
|
ImageWidth.allCases,
|
|
[480, 800, 1200]
|
|
))
|
|
func `width`(
|
|
for imageWidth: ImageWidth,
|
|
expects width: Int
|
|
) {
|
|
#expect(imageWidth.width == width)
|
|
}
|
|
|
|
}
|