blob: ff449fdf29783c0eb0ed93b2fff32f450147b4c2 [file] [log] [blame]
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// REQUIRES: objc_interop
import CoreGraphics
import StdlibUnittest
let CoreGraphicsTests = TestSuite("CoreGraphics")
CoreGraphicsTests.test("CGColor/_ExpressibleByColorLiteral") {
let color: CGColor = #colorLiteral(
red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
// we primarilly care that the code above does not crash
expectEqual([0.5, 0.5, 0.5, 1.0], color.components ?? [])
}
runAllTests()