This commit is contained in:
xh
2025-07-24 02:05:23 +08:00
parent 41ff5171d6
commit 717438e97f
9 changed files with 160 additions and 63 deletions

View File

@@ -0,0 +1,16 @@
package util
import (
"testing"
)
func TestCheckSafeString(t *testing.T) {
// 测试正常字符串
if StringUtil.CheckSafeString("abc123") {
t.Log("正常字符串")
}
// 测试包含特殊字符的字符串
if !StringUtil.CheckSafeString("abc123!") {
t.Log("包含特殊字符的字符串")
}
}