func test_hex_color_shorthand()

in CyborgTests/ColorTests.swift [96:107]


    func test_hex_color_shorthand() {
        let themeColor = "#FFF"
        themeColor.withXMLString { themeColor in
            if let color = Color(themeColor) {
                if case .hex(let color) = color {
                    XCTAssertEqual(color, UIColor(red: 1, green: 1, blue: 1, alpha: 1))
                }
            } else {
                XCTFail()
            }
        }
    }