diff --git a/captcha_test.go b/captcha_test.go index 4719f19..26b96f7 100644 --- a/captcha_test.go +++ b/captcha_test.go @@ -4,6 +4,7 @@ import ( "bytes" "errors" "image/color" + "image/color/palette" "image/gif" "image/jpeg" "math/rand" @@ -62,6 +63,7 @@ func TestNewCaptchaOptions(t *testing.T) { options.CharPreset = "1234567890" options.CurveNumber = 0 options.TextLength = 6 + options.Palette = palette.WebSafe }) NewMathExpr(100, 34, func(options *Options) {