mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-11 15:56:37 +08:00
初始化
初始化项目
This commit is contained in:
@@ -2,6 +2,15 @@ package service
|
||||
|
||||
import "testing"
|
||||
|
||||
func containsString(values []string, want string) bool {
|
||||
for _, v := range values {
|
||||
if v == want {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func TestBuildSubscribeKeyword(t *testing.T) {
|
||||
if got := buildSubscribeKeyword("沙丘", 2024); got != "沙丘 2024" {
|
||||
t.Fatalf("keyword = %q", got)
|
||||
|
||||
Reference in New Issue
Block a user