test: fix the new acronym sub-cases — DNA-stands-for-DNA doesn't use a recognized copula (drop bogus sub-assertion); add FBI-acronym variant to demonstrate all-caps coverage

This commit is contained in:
russell@unturf.com 2026-05-13 13:10:54 -04:00
parent 4444478153
commit 815cb1577d
No known key found for this signature in database

View file

@ -986,9 +986,10 @@ def test_coherence_ok_on_short_concrete_fact_with_acronym_value():
``_coherence_predicate_has_short_acronym_content``."""
d = diagnose_coherence("The chemical symbol for gold is Au.")
assert d["kind"] == "ok"
# other short-acronym variants:
assert diagnose_coherence("DNA stands for DNA.")["kind"] == "circular" # still tautology
# element-symbol variant:
assert diagnose_coherence("Iron has the chemical symbol Fe.")["kind"] == "ok"
# all-caps acronym:
assert diagnose_coherence("The acronym for the agency is FBI.")["kind"] == "ok"
def test_coherence_ok_on_named_subject_with_repeated_head_noun():