             }
             
             let sixCharactersHexString = "#22EE98"
-            let sixCharactersHexStringWithoutPound = "22ee98"
+            let errorSixCharactersHexStringWithoutPound = "22ee98"
             let threeeCharactersHexString = "#2e8"
-            let eightCharactersHexString = "#FF0088C0"
-            let fourCharactersHexString = "#F08c"
-            let fourCharactershexStringWihtoutPound = "f08C"
+            let errorEightCharactersHexString = "#FF0088C0"
+            let errorFourCharactersHexString = "#F08c"
+            let errorFourCharactersHexStringWihtoutPound = "f08C"
             let errorCharacterHexString = "#gg08CC"
             let errorCountsOfCharacterHexString = "#gg088CC"
-            let hexColor = Color.hexColor("#209")
-            let hexColor2 = Color.hexColor("#22EE98")
+            let sixCharacterHexColor = Color.hexColor(sixCharactersHexString)
+            let errorSixCharacterWithoutPoundHexColor = Color.hexColor(errorSixCharactersHexStringWithoutPound)
+            let threeCharacterHexColor = Color.hexColor(threeeCharactersHexString)
+            let errorEightCharacterHexColor = Color.hexColor(errorEightCharactersHexString)
+            let errorFourCharacterHexColor = Color.hexColor(errorFourCharactersHexString)
+            let errorFourCharacterWitoutPoundHexColor = Color.hexColor(errorFourCharactersHexStringWihtoutPound)
+            let errorCharacterHexColor = Color.hexColor(errorCharacterHexString)
+            let errorCountsOfCharacterHexColor = Color.hexColor(errorCountsOfCharacterHexString)
             
             it(" needs to check the Color.validate(_:) ") {
                 expect(Color.validate(sixCharactersHexString)).to(equal(true))
-                expect(Color.validate(sixCharactersHexStringWithoutPound)).to(equal(true))
+                expect(Color.validate(errorSixCharactersHexStringWithoutPound)).to(equal(false))
                 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(errorEightCharactersHexString)).to(equal(false))
+                expect(Color.validate(errorFourCharactersHexString)).to(equal(false))
+                expect(Color.validate(errorFourCharactersHexStringWihtoutPound)).to(equal(false))
                 expect(Color.validate(errorCharacterHexString)).to(equal(false))
                 expect(Color.validate(errorCountsOfCharacterHexString)).to(equal(false))
+            }
+            
+            it(" needs to check the hexColor case ") {
+                expect(sixCharacterHexColor.jsonString).to(equal(sixCharactersHexString.jsonString))
+                expect(errorSixCharacterWithoutPoundHexColor.jsonString).to(equal(errorColorJsonString))
+                expect(threeCharacterHexColor.jsonString).to(equal(threeeCharactersHexString.jsonString))
+                expect(errorEightCharacterHexColor.jsonString).to(equal(errorColorJsonString))
+                expect(errorFourCharacterHexColor.jsonString).to(equal(errorColorJsonString))
+                expect(errorFourCharacterWitoutPoundHexColor.jsonString).to(equal(errorColorJsonString))
+                expect(errorCharacterHexColor.jsonString).to(equal(errorColorJsonString))
+                expect(errorCountsOfCharacterHexColor.jsonString).to(equal(errorColorJsonString))
             }
             
             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 errorColorJsonString = "null".jsonString
            let rgbColor = Color.rgb(redValue, greenValue, blueValue)
            let rgbaColor = Color.rgba(redValue, greenValue, blueValue, alphaValue)
            

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