同步包路径与路由,去掉 SPA 构建步骤,对齐 Gitea 式 LICENSE,并更新规格/规则与占位 SSR。 Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
301 B
Go
15 lines
301 B
Go
package services
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestExtractMentionNames(t *testing.T) {
|
|
got := ExtractMentionNames("hi @alice 和 @小明_x 以及 @bob-1")
|
|
want := []string{"alice", "小明_x", "bob-1"}
|
|
if !reflect.DeepEqual(got, want) {
|
|
t.Fatalf("got %#v, want %#v", got, want)
|
|
}
|
|
}
|