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

25 lines
396 B
Swift
Raw Normal View History

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