Skip to content

Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 3 | Practice TDD#1214

Open
mahmoudshaabo1984 wants to merge 1 commit intoCodeYourFuture:mainfrom
mahmoudshaabo1984:coursework/sprint-3-practice-tdd
Open

Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 3 | Practice TDD#1214
mahmoudshaabo1984 wants to merge 1 commit intoCodeYourFuture:mainfrom
mahmoudshaabo1984:coursework/sprint-3-practice-tdd

Conversation

@mahmoudshaabo1984
Copy link

[x] I have tested my changes

[x] My changes follow the style guide

[x] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title

[x] My changes meet the requirements of the task

PR Title:

Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 3 | Practice TDD

Summary of work:

Completed all mandatory TDD exercises in the 2-practice-tdd directory.

Successfully implemented logic for the following using TDD (Red-Green-Refactor):

count.js: Created a function to count occurrences of a character in a string.

repeat-str.js: Implemented string repetition with a guard clause for negative numbers and the .repeat() method.

get-ordinal-number.js: Solved the complex logic for English ordinal numbers, including specific handling for 11th, 12th, and 13th.

Verified that all 5 tests passed successfully using npm test.

Personal Note for CJ:

Hi CJ,
Following your previous feedback, I have ensured that all checkboxes now use the correct - [x] syntax.
This "Practice TDD" assignment was a significant milestone for me. Navigating the test failures with NVDA and then writing the logic to make them pass helped me deeply understand the TDD cycle. I'm especially pleased with how I handled the edge cases for the ordinal numbers!

Best regards,
Mahmoud Shaabo

@mahmoudshaabo1984 mahmoudshaabo1984 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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