 class ColorSpec: QuickSpec {
     
     override func spec() {
+        // 错误的颜色的 jsontString
+        let errorColorJsonString = "null".jsonString
         
         describe("For Color.ImageRepeat") {
             let repeatAll = Color.ImageRepeat.repeatAll

            }
            
            let sixCharactersHexString = "#22EE98"
            let sixCharactersHexStringWithoutPound = "22ee98"
            let threeeCharactersHexString = "#2e8"
            let eightCharactersHexString = "#FF0088C0"
            let fourCharactersHexString = "#F08c"
            let fourCharactershexStringWihtoutPound = "f08C"
            let errorCharacterHexString = "#gg08CC"
            let errorCountsOfCharacterHexString = "#gg088CC"
            let hexColor = Color.hexColor("#209")
            let hexColor2 = Color.hexColor("#22EE98")
            
            it(" needs to check the Color.validate(_:) ") {
                expect(Color.validate(sixCharactersHexString)).to(equal(true))
                expect(Color.validate(sixCharactersHexStringWithoutPound)).to(equal(true))
                expect(Color.validate(threeeCharactersHexString)).to(equal(true))
                expect(Color.validate(eightCharactersHexString)).to(equal(true))
                expect(Color.validate(fourCharactersHexString)).to(equal(true))
                expect(Color.validate(fourCharactershexStringWihtoutPound)).to(equal(true))
                expect(Color.validate(errorCharacterHexString)).to(equal(false))
                expect(Color.validate(errorCountsOfCharacterHexString)).to(equal(false))
            }
            
            it(" needs to check the linearGradient case ") {

            let errorBlueColor = Color.rgb(redValue, greenValue, errorBlueValue)
            let errorAlphaValue: Float = 1.01
            let errorAlphaColor = Color.rgba(redValue, greenValue, blueValue, errorAlphaValue)
            let rgbColor = Color.rgb(redValue, greenValue, blueValue)
            let rgbaColor = Color.rgba(redValue, greenValue, blueValue, alphaValue)
            
