mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
Statement changes Added
This commit is contained in:
@ -5,17 +5,17 @@ test('Set bit number 0 in 1:', () => {
|
|||||||
expect(setBitPos).toBe(1)
|
expect(setBitPos).toBe(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Set bit number 0 in 1:', () => {
|
test('Set bit number 0 in 2:', () => {
|
||||||
const setBitPos = setBit(1, 0)
|
const setBitPos = setBit(2, 0)
|
||||||
expect(setBitPos).toBe(1)
|
expect(setBitPos).toBe(3)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Set bit number 0 in 1:', () => {
|
test('Set bit number 1 in 10:', () => {
|
||||||
const setBitPos = setBit(10, 1)
|
const setBitPos = setBit(10, 1)
|
||||||
expect(setBitPos).toBe(10)
|
expect(setBitPos).toBe(10)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Set bit number 0 in 1:', () => {
|
test('Set bit number 2 in 10:', () => {
|
||||||
const setBitPos = setBit(10, 2)
|
const setBitPos = setBit(10, 2)
|
||||||
expect(setBitPos).toBe(14)
|
expect(setBitPos).toBe(14)
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user