def testSortSize1000000(self): barrier() data = self.generateData(1000000) self.checkResult(data, parallel_sort(data))
def testSortDataInput(self): barrier() with self.assertRaises(ValueError): parallel_sort(5)
def testSortCompareInput(self): barrier() with self.assertRaises(ValueError): parallel_sort([], 8.2)
def sortGridFile(self, grid_file, use_file_buckets=False): data = self.loadDataFromGridFile(grid_file) self.checkResult( data, parallel_sort(data, SpartaGridFile.compare_dashed_ids, use_file_buckets), SpartaGridFile.compare_dashed_ids)