Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mergesort/Recap. A What's New screen, and more
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import Testingimport SwiftUI@testable import Recap
@Suite("System Color Tests")struct SystemColorTests { @Test("Validate known colors", arguments: [ "black", "blue", "brown", "cyan", "gray", "green", "indigo", "mint", "orange", "pink", "purple", "red", "teal", "white", "yellow", ]) func validateKnownColors(colorString: String) { #expect(Color(systemName: colorString) != nil) }
@Test("Validate colors with varying casing and spacing issues", arguments: [ "Black", "Blue ", "Brown ", "CYAN", " graY", " grEEn", " indiGo", "miNt", "oranGe", "Pink", "Purple ", "Red", "Teal", "White", "Yellow", ]) func validateColorsWithInconsistencies(colorString: String) { #expect(Color(systemName: colorString) != nil) }
@Test("Validate unknown colors", arguments: [ "aquamarine", "vantablack", ]) func validateUnknownColors(colorString: String) { #expect(Color(systemName: colorString) == nil) }}