16 lines
194 B
Go
16 lines
194 B
Go
|
package captcha
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestNewCaptcha(t *testing.T) {
|
||
|
data, err := New(150, 50)
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
buf := new(bytes.Buffer)
|
||
|
data.WriteTo(buf)
|
||
|
}
|