def test_parse_ao_citations(text, ao_nos, expected):
    ao_component_to_name_map = {
        tuple(map(int, a.split('-'))): a
        for a in ao_nos
    }
    assert parse_ao_citations(text, ao_component_to_name_map) == expected
Beispiel #2
0
def test_parse_ao_citations(text, ao_nos, expected):
    ao_component_to_name_map = {tuple(map(int, a.split('-'))): a for a in ao_nos}
    assert parse_ao_citations(text, ao_component_to_name_map) == expected