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