Content-Length: 276272 | pFad | http://github.com/me-hasan/JavaScriptAlgorithm/commit/d59213d0b8d38badf2097c97dbca905509a6f384

B8 merge: Add test case to CheckPascalCase Algorithm (#1029) · me-hasan/JavaScriptAlgorithm@d59213d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/me-hasan/JavaScriptAlgorithm/commit/d59213d0b8d38badf2097c97dbca905509a6f384

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy