落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
401 B
Go
21 lines
401 B
Go
package companion
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestTodaySolar(t *testing.T) {
|
|
term := TodaySolar(time.Date(2026, 8, 2, 12, 0, 0, 0, time.UTC))
|
|
if term.Name == "" || term.Tip == "" {
|
|
t.Fatalf("empty term: %#v", term)
|
|
}
|
|
blob := term.Name + term.Tip
|
|
for _, bad := range []string{"算命", "占卜"} {
|
|
if strings.Contains(blob, bad) {
|
|
t.Fatalf("forbidden %q", bad)
|
|
}
|
|
}
|
|
}
|