Esempio n. 1
0
 def test_count_battle_points_for_evens(self):
     # given
     binary_data = ['-1100100', '101', '1100100', '-1000']
     war = War()
     # when
     result = war.count_battle_points(binary_data, '0')
     # then
     expected = {'positive': 7, 'negative': 5}
     self.assertEqual(result, expected)