Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9befd92

Browse files
Add testcase to checkKebabCase (#1027)
1 parent 92a81a2 commit 9befd92

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎String/test/CheckKebabCase.test.js

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /