def test_interleave4_cython(self): for nums in self.num_sets: self.assertEqual(interleave_numerics.interleave4(*nums[:4]), interleave.interleavem_naive(*nums[:4]))
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))
def interleave4_cython(): for nums in num_sets: interleave_numerics.interleave4(*nums)