Skip to content

Commit 162e90f

Browse files
authored
merge: Add test case to palindromeRearranging Algorithm (TheAlgorithms#1030)
* Add test case to CheckPascalCase Algorithm * Add test case to palindromeRearranging Algorithm * no need
1 parent 07e77fa commit 162e90f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import{palindromeRearranging}from'../CheckRearrangePalindrome'
2+
3+
test('palindromeRearranging(apple) -> false',()=>{
4+
constword='apple'
5+
constres=palindromeRearranging(word)
6+
expect(res).toBeFalsy()
7+
})
8+
9+
test('palindromeRearranging(aapplle) -> true',()=>{
10+
constword='aapplle'
11+
constres=palindromeRearranging(word)
12+
expect(res).toBeTruthy()
13+
})
14+
15+
test('palindromeRearranging(value) -> false',()=>{
16+
constword='value'
17+
constres=palindromeRearranging(word)
18+
expect(res).toBeFalsy()
19+
})
20+
21+
test('palindromeRearranging(aaeccrr) -> true',()=>{
22+
constword='aaeccrr'
23+
constres=palindromeRearranging(word)
24+
expect(res).toBeTruthy()
25+
})

0 commit comments

Comments
(0)