Skip to content

Cape Town | 26-ITP-Jan | Pretty Taruvinga | Sprint 3 | Practice TDD#1133

Open
Pretty548 wants to merge 25 commits intoCodeYourFuture:mainfrom
Pretty548:coursework/sprint-3-practice-tdd
Open

Cape Town | 26-ITP-Jan | Pretty Taruvinga | Sprint 3 | Practice TDD#1133
Pretty548 wants to merge 25 commits intoCodeYourFuture:mainfrom
Pretty548:coursework/sprint-3-practice-tdd

Conversation

@Pretty548
Copy link

@Pretty548 Pretty548 commented Mar 2, 2026

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

In this PR I implemented the required functions using the TDD approach.

Wrote tests first before implementing the functions
Made the tests pass by writing the correct logic
Refactored the code to improve readability and structure
Ensured all tests pass successfully using Jest

Questions

I would appreciate feedback on:

Whether my TDD workflow is correct
Code structure and readability
Test quality and naming

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Pretty548 Pretty548 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 Mar 2, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 2, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Pretty548 Pretty548 marked this pull request as draft March 2, 2026 17:09
@Pretty548 Pretty548 marked this pull request as ready for review March 2, 2026 17:09
@Pretty548 Pretty548 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 2, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 2, 2026
@Pretty548 Pretty548 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 2, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Functions look good.

Tests could use some improvement.

Also, can you remove any unused code and unnecessary comments from the files to keep them cleaner? They make the code less readable.

Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Without the "Needs Review" label, I am not sure if this PR ready to be re-reviewed.

Please note that now your branch has three files not belonging to the TDD exercise.

Comment on lines +38 to +33
test("should append 'th' for numbers ending with 11, 12, or 13", () => {
test("should append 'th' for special cases 11, 12, or 13", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the previous description is better.

Copy link
Author

Choose a reason for hiding this comment

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

Yes definitely, i changed it.

@Pretty548 Pretty548 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@Pretty548 Pretty548 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 13, 2026

You deleted files in other subfolders under Sprint-3 in your latest commit. Deleted files are considered "changed files", and that's why the validation bot complained.

You can copy the original files from CYF repo to replace the files you deleted, or you can use "git revert" to undo the commit which you deleted all those files. After you restore those files, make a commit.

Or you can create a new PR, include a comment that it is a continuation from this PR, and tag me in the new PR.

@Pretty548 Pretty548 marked this pull request as draft March 15, 2026 10:03
@Pretty548 Pretty548 marked this pull request as ready for review March 15, 2026 10:03
@Pretty548 Pretty548 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 15, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 15, 2026
@github-actions

This comment has been minimized.

@Pretty548 Pretty548 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 15, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 15, 2026

Changes look good.

And well done in fixing the branch.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 15, 2026
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. Module-Structuring-And-Testing-Data The name of the module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants