File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { setBit } from '../SetBit'
2
2
3
- test ( 'should set bit at the given bit Position ' , ( ) => {
3
+ test ( 'Set bit number 0 in 1: ' , ( ) => {
4
4
const setBitPos = setBit ( 1 , 0 )
5
5
expect ( setBitPos ) . toBe ( 1 )
6
6
} )
7
7
8
- test ( 'should set bit at the given bit Position ' , ( ) => {
8
+ test ( 'Set bit number 0 in 1: ' , ( ) => {
9
9
const setBitPos = setBit ( 1 , 0 )
10
10
expect ( setBitPos ) . toBe ( 1 )
11
11
} )
12
12
13
- test ( 'should set bit at the given bit Position ' , ( ) => {
13
+ test ( 'Set bit number 0 in 1: ' , ( ) => {
14
14
const setBitPos = setBit ( 10 , 1 )
15
15
expect ( setBitPos ) . toBe ( 10 )
16
16
} )
17
17
18
- test ( 'should set bit at the given bit Position ' , ( ) => {
18
+ test ( 'Set bit number 0 in 1: ' , ( ) => {
19
19
const setBitPos = setBit ( 10 , 2 )
20
20
expect ( setBitPos ) . toBe ( 14 )
21
21
} )
You can’t perform that action at this time.
0 commit comments