mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Changed Test statement
This commit is contained in:
@ -1,21 +1,21 @@
|
||||
import { setBit } from '../SetBit'
|
||||
|
||||
test('should set bit at the given bit Position', () => {
|
||||
test('Set bit number 0 in 1:', () => {
|
||||
const setBitPos = setBit(1, 0)
|
||||
expect(setBitPos).toBe(1)
|
||||
})
|
||||
|
||||
test('should set bit at the given bit Position', () => {
|
||||
test('Set bit number 0 in 1:', () => {
|
||||
const setBitPos = setBit(1, 0)
|
||||
expect(setBitPos).toBe(1)
|
||||
})
|
||||
|
||||
test('should set bit at the given bit Position', () => {
|
||||
test('Set bit number 0 in 1:', () => {
|
||||
const setBitPos = setBit(10, 1)
|
||||
expect(setBitPos).toBe(10)
|
||||
})
|
||||
|
||||
test('should set bit at the given bit Position', () => {
|
||||
test('Set bit number 0 in 1:', () => {
|
||||
const setBitPos = setBit(10, 2)
|
||||
expect(setBitPos).toBe(14)
|
||||
})
|
||||
|
Reference in New Issue
Block a user