Пример #1
0
 def test_mpi_unique_offsets_14(self):
     streams = int_indexer_short.test_14()
     expected = [0.0, 0.0625, 0.125, 0.1875, 0.25, 0.3125, 0.375, 0.4375, 0.5]
     actual = indexer.mpi_unique_offsets(streams)
     self.assertSequenceEqual(expected, actual)
Пример #2
0
 def test_mpi_unique_offsets_17(self):
     streams = int_indexer_short.test_17()
     expected = [0.0, 0.5, 0.75, 1.125, 1.25, 1.375, 2.0]
     actual = indexer.mpi_unique_offsets(streams)
     self.assertSequenceEqual(expected, actual)
Пример #3
0
 def test_mpi_unique_offsets_10(self):
     streams = int_indexer_short.test_10()
     expected = [0.0, 0.25]
     actual = indexer.mpi_unique_offsets(streams)
     self.assertSequenceEqual(expected, actual)