Skip to content

London | 26-ITP-May | Dipa Sarker | Sprint 3 | Practice TDD#1471

Open
Dipa-Sarker wants to merge 6 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Coursework/sprint-3-practice-tdd
Open

London | 26-ITP-May | Dipa Sarker | Sprint 3 | Practice TDD#1471
Dipa-Sarker wants to merge 6 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Coursework/sprint-3-practice-tdd

Conversation

@Dipa-Sarker

Copy link
Copy Markdown

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

  1. Wrote Jest tests for the required functions before implementing the code (Test-Driven Development).
  2. Implemented the count function to satisfy all test cases.
  3. Implemented the repeatStr function to satisfy all test cases.
  4. Implemented the getOrdinalNumber function to satisfy all test cases.
  5. Verified that all tests pass successfully using the VS Code test runner.

@Dipa-Sarker Dipa-Sarker added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 6, 2026
@tiakavousi tiakavousi added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 9, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great suite of test cases, can we think of some more edge cases to test, making sure the function can handle tricky arguments?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Readability and naming are spot on!

I'm curious about the control flow choices here. Could you share why you opted for the else if chain and wrapped the final return in an else block?

@tiakavousi tiakavousi added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants