Пример #1
0
 def test_interleave4_cython(self):
     for nums in self.num_sets:
         self.assertEqual(interleave_numerics.interleave4(*nums[:4]),
                          interleave.interleavem_naive(*nums[:4]))
Пример #2
0
 def test_idempotency4_cython(self):
     for nums in self.num_sets:
         integers = list(nums[:4])
         interleaved = interleave_numerics.interleave4(*integers)
         self.assertEqual(integers,
                          interleave_numerics.deinterleave4(interleaved))
Пример #3
0
def interleave4_cython():
    for nums in num_sets:
        interleave_numerics.interleave4(*nums)