Exemplo n.º 1
0
 def test_Data_getLocation(self):
     d_glo = Data('d_glo', 2)
     d_glo.insertLocation(0.7, [3, 6, 2])
     d_glo.insertLocation(0.3, [4, 1, 8])
     self.assertEqual(d_glo.getLocation(0), [3, 6, 2])
     self.assertEqual(d_glo.getLocation(1), [4, 1, 8])
     self.assertEqual(d_glo.getLocation(2), [])
Exemplo n.º 2
0
 def test_Data_insertLocation(self):
     d_til = Data('d_til', 1)
     d_til.insertLocation(1, [2, 3, 4])
     self.assertEqual(d_til.getLocation(0), [2, 3, 4])