Improved the Build subcommand to support the building of Docker images #11

Merged
javier merged 10 commits from setup/docker into main 2025-02-22 00:33:53 +00:00
2 changed files with 39 additions and 0 deletions
Showing only changes of commit c5fc608c23 - Show all commits

View File

@ -0,0 +1,7 @@
protocol Randomable: CaseIterable {
// MARK: Functions
static func random() -> Self
}

View File

@ -0,0 +1,32 @@
import Testing
@testable import ColibriLibrary
struct RandomableTest {
@Test func random() {
// GIVEN
let allCases = TestRandomable.allCases
// WHEN
let random = TestRandomable.random()
// THEN
#expect(allCases.contains(random))
}
}
// MARK: - Enumerations
enum TestRandomable: Randomable {
case someCase
case someOtherCase
// MARK: Functions
static func random() -> TestRandomable {
.allCases.randomElement() ?? .someCase
}
}