Skip to content

Cape Town | 26-ITP-May | Shafiek Walker | Sprint 3 | Practice TDD#1391

Open
shafiekwalker7861 wants to merge 1 commit into
CodeYourFuture:mainfrom
shafiekwalker7861:coursework/sprint-3-practice-tdd
Open

Cape Town | 26-ITP-May | Shafiek Walker | Sprint 3 | Practice TDD#1391
shafiekwalker7861 wants to merge 1 commit into
CodeYourFuture:mainfrom
shafiekwalker7861:coursework/sprint-3-practice-tdd

Conversation

@shafiekwalker7861

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

Completed the Sprint 3 "Practice TDD" exercises.
Wrote and updated Jest tests, implemented the required functions, and verified that all tests pass using npm test.

@shafiekwalker7861 shafiekwalker7861 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 23, 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 Jun 23, 2026
@github-actions

This comment has been minimized.

@shafiekwalker7861 shafiekwalker7861 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 23, 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 Jun 23, 2026
@shafiekwalker7861 shafiekwalker7861 force-pushed the coursework/sprint-3-practice-tdd branch from c34267d to f961fe6 Compare June 23, 2026 10:03
@shafiekwalker7861 shafiekwalker7861 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 Jun 23, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jun 29, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good start on this task, there's a few places still to work on though

// When the repeatStr function is called with these inputs,
// Then it should return a string that contains the original `str` repeated `count` times.

function repeatStr(str, count) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you put this code into the relevant file please? We try to ensure that test files only have tests in them, and not the actual code.

function getOrdinalNumber(num) {
return "1st";
if (num % 10 === 1 && num % 100 !== 11) {
return num + "st";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this code work, and do you test for, the other ordinals? What about 2nd, 3rd, 4th etc?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jun 29, 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. 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