fixes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user