Skip to content

London | 26-ITP-January | Raihan Sharif | Sprint 3 | Coursework/sprint3/2-practice-tdd#1056

Open
RaihanSharif wants to merge 4 commits intoCodeYourFuture:mainfrom
RaihanSharif:sprint-3-practice-tdd
Open

London | 26-ITP-January | Raihan Sharif | Sprint 3 | Coursework/sprint3/2-practice-tdd#1056
RaihanSharif wants to merge 4 commits intoCodeYourFuture:mainfrom
RaihanSharif:sprint-3-practice-tdd

Conversation

@RaihanSharif
Copy link

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

Added necessary implentations and tests

@RaihanSharif RaihanSharif added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
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 more samples.

  • Could consider testing these cases:

    • 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

Comment on lines +2 to +5
// 11 is a special case
if (num === 11) {
return "11th";
}
Copy link
Contributor

Choose a reason for hiding this comment

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

11 is not the only special case. Can you look up the rules of ordinal numbers and update also the tests?

}

if ((count) => 1) {
return str.repeat(count);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you look up the behavior of .repeat(count) when count is 0 or negative?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 6, 2026
@RaihanSharif
Copy link
Author

RaihanSharif commented Mar 6, 2026

Made all changes mentioned in review.

@cjyuan
Copy link
Contributor

cjyuan commented Mar 6, 2026

Changes look good.

Note: If your PR is ready to be re-reviewed, you should also add the "Needs Review" label.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 6, 2026
@RaihanSharif
Copy link
Author

Changes look good.

Note: If your PR is ready to be re-reviewed, you should also add the "Needs Review" label.

Will do.

Thank you for the review.

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