Refactor validators into built-in registry chains
This commit is contained in:
@@ -3048,6 +3048,9 @@ func TestRunProcessExplicitHomophonesProtectedGlossaryTermRejected(t *testing.T)
|
||||
if module.ValidatorRejected[0].ReasonCode != validators.ReasonProtectedGlossaryTerm {
|
||||
t.Fatalf("expected protected glossary term rejection, got %+v", module.ValidatorRejected[0])
|
||||
}
|
||||
if module.ValidatorRejected[0].ValidatorName != "protected_terms" {
|
||||
t.Fatalf("expected stable validator key protected_terms, got %+v", module.ValidatorRejected[0])
|
||||
}
|
||||
}
|
||||
|
||||
func TestRunProcessExplicitHomophonesMalformedLLMOutputFailsWithErrorLog(t *testing.T) {
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
"total_skipped_changes": 1,
|
||||
"validator_rejected_reason_codes": ["llm_rejected"],
|
||||
"expected_proposal_calls": ["grammar:proposal"],
|
||||
"expected_validation_calls": ["grammar:section-0000:grammar_only_guard:batch-0000"]
|
||||
"expected_validation_calls": ["grammar:section-0000:grammar_review:batch-0000"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user