First Commit
ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
web / web (push) Waiting to run
docs / links (push) Canceled after 0s
detections / detections (push) Canceled after 0s
ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
web / web (push) Waiting to run
docs / links (push) Canceled after 0s
detections / detections (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"unicode"
|
||||
)
|
||||
|
||||
// TestManualTaskScopeSummaryLocalized pins the manual task-scope provenance label.
|
||||
// It is stored on task_asset_links.source_summary (AddTaskScope / SetTaskAssetSource)
|
||||
// and rendered verbatim on the task detail sessions/assets tabs, so reverting it to
|
||||
// Chinese would surface mixed-language provenance labels in the same panel. The
|
||||
// existing task_assets_test.go already asserts the stored value equals this constant
|
||||
// via the symbol, so pinning the constant here protects the user-facing text too.
|
||||
func TestManualTaskScopeSummaryLocalized(t *testing.T) {
|
||||
if manualTaskScopeSummary == "" {
|
||||
t.Fatal("manualTaskScopeSummary: 빈 문자열")
|
||||
}
|
||||
hasHangul := false
|
||||
for _, r := range manualTaskScopeSummary {
|
||||
if unicode.Is(unicode.Han, r) {
|
||||
t.Fatalf("manualTaskScopeSummary: 중국어 한자가 남아 있습니다: %q", manualTaskScopeSummary)
|
||||
}
|
||||
if unicode.Is(unicode.Hangul, r) {
|
||||
hasHangul = true
|
||||
}
|
||||
}
|
||||
if !hasHangul {
|
||||
t.Fatalf("manualTaskScopeSummary: 한글이 없습니다: %q", manualTaskScopeSummary)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user