GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — merge: Add test case to palindromeRearranging Algorithm (#1030) · ex1234/JavaScript@162e90f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • String/test
    • CheckRearrangePalindrome.test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎String/test/CheckRearrangePalindrome.test.js‎

Copy file name to clipboard
+25Lines 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+
const word = 'apple'
5+
const res = palindromeRearranging(word)
6+
expect(res).toBeFalsy()
7+
})
8+
9+
test('palindromeRearranging(aapplle) -> true', () => {
10+
const word = 'aapplle'
11+
const res = palindromeRearranging(word)
12+
expect(res).toBeTruthy()
13+
})
14+
15+
test('palindromeRearranging(value) -> false', () => {
16+
const word = 'value'
17+
const res = palindromeRearranging(word)
18+
expect(res).toBeFalsy()
19+
})
20+
21+
test('palindromeRearranging(aaeccrr) -> true', () => {
22+
const word = 'aaeccrr'
23+
const res = palindromeRearranging(word)
24+
expect(res).toBeTruthy()
25+
})

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.