Esempio n. 1
0
 def testClusterPartitioning(self):
     a, b = ccd.Cluster([1, 2, 3], 1)
     self.assertEqual(a, [1, 2])
     self.assertEqual(b, [3])
 def testClusterPartitioning(self):
     a, b = ccd.Cluster([1, 2, 3], 1)
     self.assertEqual(a, array.array('d', [1]))
     self.assertEqual(b, array.array('d', [2, 3]))