Skip to content

Commit d59213d

Browse files
authored
merge: Add test case to CheckPascalCase Algorithm (TheAlgorithms#1029)
1 parent 162e90f commit d59213d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

String/test/CheckPascalCase.test.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { CheckPascalCase } from '../CheckPascalCase'
2+
3+
test('CheckPascalCase(TheAlgorithms) -> true', () => {
4+
const word = 'TheAlgorithms'
5+
const res = CheckPascalCase(word)
6+
expect(res).toBeTruthy()
7+
})
8+
9+
test('CheckPascalCase(theAlgorithms) -> false', () => {
10+
const word = 'theAlgorithms'
11+
const res = CheckPascalCase(word)
12+
expect(res).toBeFalsy()
13+
})
14+
15+
test('CheckPascalCase(The Algorithms) -> false', () => {
16+
const word = 'The Algorithms'
17+
const res = CheckPascalCase(word)
18+
expect(res).toBeFalsy()
19+
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy