We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51a9126 commit 58fca82Copy full SHA for 58fca82
1 file changed
Bit-Manipulation/test/SetBit.test.js
@@ -1,21 +1,21 @@
1
import { setBit } from '../SetBit'
2
3
-test('should set bit at the given bit Position', () => {
+test('Set bit number 0 in 1:', () => {
4
const setBitPos = setBit(1, 0)
5
expect(setBitPos).toBe(1)
6
})
7
8
9
10
11
12
13
14
const setBitPos = setBit(10, 1)
15
expect(setBitPos).toBe(10)
16
17
18
19
const setBitPos = setBit(10, 2)
20
expect(setBitPos).toBe(14)
21
0 commit comments