Content-Length: 289108 | pFad | http://github.com/webmansa/JavaScript-algorithms/commit/162e90f3d2771bb6b3bd7de0447624589c3829b3
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e77fa commit 162e90fCopy full SHA for 162e90f
String/test/CheckRearrangePalindrome.test.js
@@ -0,0 +1,25 @@
1
+import { palindromeRearranging } from '../CheckRearrangePalindrome'
2
+
3
+test('palindromeRearranging(apple) -> false', () => {
4
+ const word = 'apple'
5
+ const res = palindromeRearranging(word)
6
+ expect(res).toBeFalsy()
7
+})
8
9
+test('palindromeRearranging(aapplle) -> true', () => {
10
+ const word = 'aapplle'
11
12
+ expect(res).toBeTruthy()
13
14
15
+test('palindromeRearranging(value) -> false', () => {
16
+ const word = 'value'
17
18
19
20
21
+test('palindromeRearranging(aaeccrr) -> true', () => {
22
+ const word = 'aaeccrr'
23
24
25
Fetched URL: http://github.com/webmansa/JavaScript-algorithms/commit/162e90f3d2771bb6b3bd7de0447624589c3829b3
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments