Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
package truthutil
import "testing"
func TestCheckURIAndNumberAllowsXiGreeting(t *testing.T) {
t.Parallel()
for _, content := range []string{
"嘻嘻",
"嘻嘻,我在这里",
"西西",
} {
content := content
t.Run(content, func(t *testing.T) {
t.Parallel()
if !checkURIAndNumber(content) {
t.Fatalf("checkURIAndNumber(%q) = false, want true", content)
}
})
}
}
func TestCheckURIAndNumberStillRejectsURLs(t *testing.T) {
t.Parallel()
for _, content := range []string{
"abc.com",
"abc点com",
} {
content := content
t.Run(content, func(t *testing.T) {
t.Parallel()
if checkURIAndNumber(content) {
t.Fatalf("checkURIAndNumber(%q) = true, want false", content)
}
})
}
}