16 lines
256 B
Go
16 lines
256 B
Go
|
package lib
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestBaiduCheck_Check(t *testing.T) {
|
||
|
b := BaiduCheck{
|
||
|
API_KEY: "yifBhtwr1lKvp5GMGLrQLxna",
|
||
|
SECRET_KEY: "2gedlLVa28Kfq9ADjVSDEihZ6VrNBK8S",
|
||
|
}
|
||
|
r, err := b.Check("台湾问题")
|
||
|
log.Println(r, err)
|
||
|
}
|