Skip to content

London | 26-ITP-Jan | Alex Okorefe | Sprint 3 | Practice TDD#1209

Open
Alex-Os-Dev-Lab wants to merge 5 commits intoCodeYourFuture:mainfrom
Alex-Os-Dev-Lab:coursework/sprint-3-practice-tdd
Open

London | 26-ITP-Jan | Alex Okorefe | Sprint 3 | Practice TDD#1209
Alex-Os-Dev-Lab wants to merge 5 commits intoCodeYourFuture:mainfrom
Alex-Os-Dev-Lab:coursework/sprint-3-practice-tdd

Conversation

@Alex-Os-Dev-Lab
Copy link

@Alex-Os-Dev-Lab Alex-Os-Dev-Lab commented Mar 7, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Completed exercises in the TDD directory

Questions

No questions at this stage

@Alex-Os-Dev-Lab Alex-Os-Dev-Lab added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 7, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Function implementation is correct.

  • Tests are comprehensive.

  • Test descriptions are clear.

Well done!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could consider testing a few more samples in this script - higher chance to detect bugs in code.

The original specification did not clearly state whether the character match should be case-sensitive.
Most people would probably assume that it is, but to demonstrate our understanding or clarify the assumption we made,
we could add test cases to convey this. For examples,

  • A case to show that the match is case sensitive
  • A case to show that the function is expected to work also for non-alphabets

@@ -1,5 +1,25 @@
function repeatStr() {
return "hellohellohello";
function repeatStr(stringToRepeat, numberOfRepetitions) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

count is a widely recognised name in programming to mean "number of something".
It is shorter to express repetitionCount or just count than numberOfRepetitions.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants