mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Updated the code and did the required changes
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import {IsPowerOfTwo} from '../IsPowerOfTwo'
|
||||
|
||||
test('Check if 0 is a power of 2 or not:', () => {
|
||||
const res = IsPowerOfTwo(1, 0)
|
||||
const res = IsPowerOfTwo(0)
|
||||
expect(res).toBe(false)
|
||||
})
|
||||
|
||||
test('Check if 0 is a power of 2 or not:', () => {
|
||||
const res = IsPowerOfTwo(1)
|
||||
expect(res).toBe(false)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user