Exemple #1
0
 def test_same(self):
     config = [[0, 0], [0]]
     answer = gps.get_configuration_answer(config)
     self.assertEqual(answer.split("_")[1], 'none')
Exemple #2
0
 def test_attract(self):
     config = [[0, 0], [1]]
     answer = gps.get_configuration_answer(config)
     self.assertEqual(answer.split("_")[1], 'attract')
Exemple #3
0
 def test_repel(self):
     config = [[0, 0], [-1]]
     answer = gps.get_configuration_answer(config)
     self.assertEqual(answer.split("_")[1], 'repel')
Exemple #4
0
 def test_b_is_larger(self):
     config = [[0, 1], [0]]
     answer = gps.get_configuration_answer(config)
     self.assertEqual(answer.split("_")[0], 'B')