This commit is contained in:
2026-08-17 09:33:07 +02:00
parent 0dceb3a404
commit fe94c2fb9c
40 changed files with 2360 additions and 340 deletions
@@ -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)