Added the ImageWidth enumeration to the Website library target.

This commit is contained in:
2026-08-25 17:23:29 +02:00
parent c09ac657ab
commit 3358946e3d
4 changed files with 135 additions and 0 deletions
@@ -0,0 +1,24 @@
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)
}
}