merge: Add test case to palindromeRearranging Algorithm (#1030)

* Add test case to CheckPascalCase Algorithm

* Add test case to palindromeRearranging Algorithm

* no need
This commit is contained in:
Ankush263
2022-05-31 14:24:57 +05:30
committed by GitHub
parent 07e77fac1c
commit 162e90f3d2

View File

@ -0,0 +1,25 @@
import { palindromeRearranging } from '../CheckRearrangePalindrome'
test('palindromeRearranging(apple) -> false', () => {
const word = 'apple'
const res = palindromeRearranging(word)
expect(res).toBeFalsy()
})
test('palindromeRearranging(aapplle) -> true', () => {
const word = 'aapplle'
const res = palindromeRearranging(word)
expect(res).toBeTruthy()
})
test('palindromeRearranging(value) -> false', () => {
const word = 'value'
const res = palindromeRearranging(word)
expect(res).toBeFalsy()
})
test('palindromeRearranging(aaeccrr) -> true', () => {
const word = 'aaeccrr'
const res = palindromeRearranging(word)
expect(res).toBeTruthy()
})