Updated the code and did the required changes

This commit is contained in:
Aayushi-Mittal
2021-10-08 21:20:21 +05:30
parent e978f4365d
commit 7ce688b9db
2 changed files with 24 additions and 8 deletions

View File

@@ -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)
})