interactive-coding-challenges icon indicating copy to clipboard operation
interactive-coding-challenges copied to clipboard

test_pairwise_swap test case is incorrect

Open marvin659 opened this issue 2 years ago • 1 comments

self.assertEqual(bits.pairwise_swap(1), 1) is incorrect. According to the description, the result should be 2.

i.e. 0000000000000001 should result in 0000000000000010 which is 2 instead of 1.

marvin659 avatar Jun 20 '23 16:06 marvin659

Please, provide an PR to fix it.

eamanu avatar Jun 24 '23 21:06 eamanu