Skip to content

London | 26-ITP-May | Chun Yan Wong | Sprint 3 | practice-TDD#1492

Open
cywong-dev wants to merge 7 commits into
CodeYourFuture:mainfrom
cywong-dev:coursework/sprint-3/practice-tdd
Open

London | 26-ITP-May | Chun Yan Wong | Sprint 3 | practice-TDD#1492
cywong-dev wants to merge 7 commits into
CodeYourFuture:mainfrom
cywong-dev:coursework/sprint-3/practice-tdd

Conversation

@cywong-dev

@cywong-dev cywong-dev commented Jul 10, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

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

Changelist

Create the JEST test cases for the coursework

Implement logic to return ordinal numbers based on input.
Added tests for ordinal number handling for 2nd, 3rd, th exceptions, and general cases.
Implement repeatStr function to repeat a string a given number of times without using String.prototype.repeat. Handle negative count by throwing an error.
Added test cases for repeatStr function to handle edge cases including count of 1, 0, and negative values.
@github-actions

This comment has been minimized.

@cywong-dev cywong-dev changed the title London | 25-ITP-May | Chun Yan Wonf | Sprint - 1 | Alarm Clock London | 26-ITP-May | Chun Yan Wong | Sprint 3 | practice-TDD Jul 10, 2026
@github-actions

This comment has been minimized.

@cywong-dev cywong-dev added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant