Skip to content

Commit 51116dc

Browse files
update comments
1 parent c4b0c07 commit 51116dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Implement a function repeat
1+
// Implement a function repeatStr
22
const repeatStr = require("./repeat-str");
33
// Given a target string str and a positive integer count,
4-
// When the repeat function is called with these inputs,
4+
// When the repeatStr function is called with these inputs,
55
// Then it should:
66

77
// case: repeat String:
88
// Given a target string str and a positive integer count,
9-
// When the repeat function is called with these inputs,
9+
// When the repeatStr function is called with these inputs,
1010
// Then it should repeat the str count times and return a new string containing the repeated str values.
1111

1212
test("should repeat the string count times", () => {
@@ -18,15 +18,15 @@ test("should repeat the string count times", () => {
1818

1919
// case: handle Count of 1:
2020
// Given a target string str and a count equal to 1,
21-
// When the repeat function is called with these inputs,
21+
// When the repeatStr function is called with these inputs,
2222
// Then it should return the original str without repetition, ensuring that a count of 1 results in no repetition.
2323

2424
// case: Handle Count of 0:
2525
// Given a target string str and a count equal to 0,
26-
// When the repeat function is called with these inputs,
26+
// When the repeatStr function is called with these inputs,
2727
// Then it should return an empty string, ensuring that a count of 0 results in an empty output.
2828

2929
// case: Negative Count:
3030
// Given a target string str and a negative integer count,
31-
// When the repeat function is called with these inputs,
31+
// When the repeatStr function is called with these inputs,
3232
// Then it should throw an error or return an appropriate error message, as negative counts are not valid.

0 commit comments

Comments
 (0)