From 891b52d957cd4ec85fe6fa7274a00efdfabb28ee Mon Sep 17 00:00:00 2001 From: Weilin Shi <934587911@qq.com> Date: Thu, 4 Oct 2018 09:48:52 +0800 Subject: [PATCH] Update coverage --- captcha_test.go | 2 ++ 1 file changed, 2 insertions(+) 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) {