Skip to content

Commit 6270b24

Browse files
committed
Add UPPER_SNAKE_CASE test cases
1 parent f7dd186 commit 6270b24

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎Sprint-3/3-mandatory-implement/2-cases.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ function toUpperSnakeCase(words) {
1919
}
2020

2121
console.log(toUpperSnakeCase("hello there"));
22+
23+
console.assert(
24+
toUpperSnakeCase("hello") === "HELLO",
25+
'Expected "hello" to become "HELLO"',
26+
);
27+
console.assert(
28+
toUpperSnakeCase(" hello there ") === "HELLO_THERE",
29+
"Expected extra spaces to be trimmed and collapsed to one underscore",
30+
);

0 commit comments

Comments
 (0)