Files
JavaScript/String/test/CheckRearrangePalindrome.test.js
Ankush263 162e90f3d2 merge: Add test case to palindromeRearranging Algorithm (#1030)
* Add test case to CheckPascalCase Algorithm

* Add test case to palindromeRearranging Algorithm

* no need
2022-05-31 14:24:57 +05:30

26 lines
697 B
JavaScript

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