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)
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|