X Tutup
Skip to content

Commit cabbc71

Browse files
authored
Update HammingCode.test.js
1 parent e081542 commit cabbc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bit-Manipulation/test/HammingCode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ describe.each([
99
{ inputVal:parseInt(1101110,2), expectedVal: 5 }
1010
])('Resulting hamming code conversion from $inputVal', ({inputVal, expectedVal}) => {
1111
test(`returns bit count = ${expectedVal}`, () => {
12-
expect(inputVal).toBe(expectedVal)
12+
expect(HammingCode(inputVal)).toBe(expectedVal)
1313
})
1414
})

0 commit comments

Comments
 (0)
X Tutup