def test_find_sub_sequence_index_4(self): sequence = [1, 2, '+', 3, '*'] index = SuffixFormula._find_sub_sequence_index(sequence, 4) self.assertEqual(index, 0)
def test_find_sub_sequence_index_2(self): sequence = [1, '+'] with self.assertRaises(ValueError): SuffixFormula._find_sub_sequence_index(sequence, 1)