def test_uses_only_valid_intervals(self):
        """
        Tests that only valid consonant intervals are used.
        """
        valid_intervals = [2, 4, 5, 7, 9, 11]
        result = create_population(20, CANTUS_FIRMUS)
        for genome in result:
            for i in range(len(genome.chromosome)):
                contrapunctus_note = genome.chromosome[i]
                cantus_firmus_note = CANTUS_FIRMUS[i]
                interval = cantus_firmus_note - contrapunctus_note
                self.assertIn(interval, valid_intervals)
dataset/ETHPy150Open ntoll/foox/test/species/test_fourth.py/TestCreatePopulation.test_uses_only_valid_intervals/swapped operands of `-`