donnemartin / donnemartin/interactive-coding-challenges

test_pairwise_swap test case is incorrect

Open
#306 1 comment 0 reactions 0 assignees View on GitHub
needs-review
Dominant language
Python
Stars
31.8k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.