from .case_data import CaseData


def test_functional_groups(precursor: CaseData) -> None:
    """Test :class:`.Precursor`.

    Parameters:

        precursor:
            The precursor.

    """
    fgs = list(
        precursor.precursor.get_building_block().get_functional_groups()
    )
    print(fgs)
    assert len(fgs) == precursor.num_fgs
