fix
This commit is contained in:
@@ -13,6 +13,17 @@ func TestLooksLikeHeuristicSynthesize(t *testing.T) {
|
||||
if !LooksLikeHeuristicSynthesize(sl) {
|
||||
t.Fatalf("expected SL invent detected: %q", sl)
|
||||
}
|
||||
htmlInvent := "<p>QLED TV 55 je televizor znamke Samsung.</p>"
|
||||
if !LooksLikeHeuristicSynthesize(htmlInvent) {
|
||||
t.Fatalf("expected HTML-wrapped invent detected: %q", htmlInvent)
|
||||
}
|
||||
if !ShouldRefuseEnhanceHashSkip(htmlInvent, "QLED TV 55") {
|
||||
t.Fatalf("HTML invent must block hash skip")
|
||||
}
|
||||
factual := "QLED TV 55 — Televizorji, znamka Samsung."
|
||||
if !LooksLikeHeuristicSynthesize(factual) {
|
||||
t.Fatalf("expected factualDescriptionIntro invent detected: %q", factual)
|
||||
}
|
||||
good := "Vogel's WALL 3245 is a sturdy TV mount with clear load ratings and install guidance for wall displays."
|
||||
if LooksLikeHeuristicSynthesize(good) {
|
||||
t.Fatalf("retail copy must not look like invent: %q", good)
|
||||
|
||||
Reference in New Issue
Block a user