We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e081542 commit cabbc71Copy full SHA for cabbc71
Bit-Manipulation/test/HammingCode.test.js
@@ -9,6 +9,6 @@ describe.each([
9
{ inputVal:parseInt(1101110,2), expectedVal: 5 }
10
])('Resulting hamming code conversion from $inputVal', ({inputVal, expectedVal}) => {
11
test(`returns bit count = ${expectedVal}`, () => {
12
- expect(inputVal).toBe(expectedVal)
+ expect(HammingCode(inputVal)).toBe(expectedVal)
13
})
14
0 commit comments