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:
parent
4444478153
commit
815cb1577d
1 changed files with 3 additions and 2 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue