Skip to content

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Practice TDD#1153

Open
Richiealx wants to merge 2 commits intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-3-practice-tdd
Open

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Practice TDD#1153
Richiealx wants to merge 2 commits intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-3-practice-tdd

Conversation

@Richiealx
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

This PR completes the Sprint 3 Practice TDD coursework.

Implemented functionality

  • Implemented getOrdinalNumber following TDD principles.
  • Added logic to correctly return ordinal suffixes:
    • st for numbers ending in 1 (except 11)
    • nd for numbers ending in 2 (except 12)
    • rd for numbers ending in 3 (except 13)
    • th for all other numbers.

Tests

Jest tests were written and run to verify the implementation.

Tests executed using:

  • npx jest Sprint-3/2-practice-tdd
  • All tests pass successfully

@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 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