Files

21 lines
508 B
Go
Raw Permalink Normal View History

2026-08-16 16:57:36 +02:00
package processing
import (
"testing"
)
func TestIsWeakPriorEnhanceDescription_forFixCatalog(t *testing.T) {
t.Parallel()
title := "Acme Widget Pro 12"
if !isWeakPriorEnhanceDescription("", title) {
t.Fatal("empty desc should be weak")
}
if !isWeakPriorEnhanceDescription(title, title) {
t.Fatal("title echo should be weak")
}
good := "Durable widget for everyday kitchen use with clear specs."
if isWeakPriorEnhanceDescription(good, title) {
t.Fatal("factual desc should not be weak")
}
}