Skip to content

Manchester | 26-ITP-May | Abdu Hassen | Sprint 3 |practice-tdd - #1500

Open
Abduhasen wants to merge 2 commits into
CodeYourFuture:mainfrom
Abduhasen:Sprint-3-back-log-practice-tdd
Open

Manchester | 26-ITP-May | Abdu Hassen | Sprint 3 |practice-tdd #1500
Abduhasen wants to merge 2 commits into
CodeYourFuture:mainfrom
Abduhasen:Sprint-3-back-log-practice-tdd

Conversation

@Abduhasen

@Abduhasen Abduhasen commented Jul 12, 2026

Copy link
Copy Markdown

…iven development

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

-writing test
-writing code based on tests

Questions

N/A

@github-actions

This comment has been minimized.

@Abduhasen Abduhasen changed the title Manchester writing test for the given function and writing a function by test dr… Manchester | 26-ITP-May | Abdu Hassen | Sprint-3 |practice-tdd Jul 12, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@Abduhasen Abduhasen changed the title Manchester | 26-ITP-May | Abdu Hassen | Sprint-3 |practice-tdd Manchester | 26-ITP-May | Abdu Hassen | Sprint 3 |practice-tdd Jul 12, 2026
@Abduhasen Abduhasen added 📅 Sprint 3 Assigned during Sprint 3 of this module 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 Jul 12, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 20, 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 work on these tasks, I have some comments for you to improve further

Comment thread Sprint-3/2-practice-tdd/count.test.js Outdated
Comment thread Sprint-3/2-practice-tdd/get-ordinal-number.test.js
Comment thread Sprint-3/2-practice-tdd/repeat-str.js Outdated
for (let i = 0; i < num; i++) {
result += str;
}
if (num > 0) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are all of these if branches necessary?

@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 Jul 20, 2026
@Abduhasen Abduhasen 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 Jul 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.

A few more things to work on

Comment thread Sprint-3/2-practice-tdd/get-ordinal-number.test.js
return "";
} else throw new error();

return str.repeat(num);

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 have another look at this task - check the comment at the start which mentions what you should avoid.

My original comment was about the if branches you had after your for loop, which was a good implementation. The if branches seemed like they might not be necessary. Can you try re-implementing just the for loop?

@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. labels Jul 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. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants