def test_flip_5(self): self.assertEqual(calculate_flips('-+-++----+++++---'), 7)
def test_flip_4(self): self.assertEqual(calculate_flips('--+-'), 3)
def test_flip_3(self): self.assertEqual(calculate_flips('+-'), 2)
def test_flip_2(self): self.assertEqual(calculate_flips('-+'), 1)
def test_flip_all_down(self): self.assertEqual(calculate_flips('-' * 11), 1)
def test_flip_all_down(self): self.assertEqual(calculate_flips('+' * 50), 0)