Skip to content

Birmingham | ITP-Jan-26 | Ayodeji Ayorinde | Sprint 3| 1-implement-and-rewrite-tests -Final#1289

Open
Ayogit1 wants to merge 3 commits intoCodeYourFuture:mainfrom
Ayogit1:Sprint-3-implement-and-rewrite-tests-coursework
Open

Birmingham | ITP-Jan-26 | Ayodeji Ayorinde | Sprint 3| 1-implement-and-rewrite-tests -Final#1289
Ayogit1 wants to merge 3 commits intoCodeYourFuture:mainfrom
Ayogit1:Sprint-3-implement-and-rewrite-tests-coursework

Conversation

@Ayogit1
Copy link
Copy Markdown

@Ayogit1 Ayogit1 commented Apr 6, 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

1-implement-and-rewrite-tests -Final

@Ayogit1 Ayogit1 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 6, 2026
@LonMcGregor LonMcGregor added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. 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 Apr 7, 2026
@Ayogit1
Copy link
Copy Markdown
Author

Ayogit1 commented Apr 17, 2026

@LonMcGregor , Please what is wrong with this PR? I couldn't see any comments from you.

@Ayogit1 Ayogit1 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 17, 2026
@cjyuan
Copy link
Copy Markdown
Contributor

cjyuan commented Apr 18, 2026

Your previous Sprint-3 "Implement and Rewrite" PR already had a review. Please include the link of that PR here and describe how you addressed the comments.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 19, 2026
@Ayogit1
Copy link
Copy Markdown
Author

Ayogit1 commented Apr 20, 2026

Not sure if you were referring to the PR below.
The said PR failed bot checks and that was the need for a final repeat. I consider the PR irrelevant and I plan too close it.
This current PR had all tasks completed.
Please let me know if I have missed something as time is against me.
Thanks.

#1288

@Ayogit1 Ayogit1 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 Apr 20, 2026
@cjyuan
Copy link
Copy Markdown
Contributor

cjyuan commented Apr 20, 2026

These are all your PRs (closed and open) you created in the Structuring and Testing Data module:
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/pulls?q=+author%3AAyogit1+

Those that has been reviewed have the the "Reviewed" or "Complete" labels.

@Ayogit1
Copy link
Copy Markdown
Author

Ayogit1 commented Apr 20, 2026

This PR is a continuation of the PR that has already had a review.

@cjyuan
Copy link
Copy Markdown
Contributor

cjyuan commented Apr 20, 2026

Would be helpful to share the link of that PR here.

@Ayogit1
Copy link
Copy Markdown
Author

Ayogit1 commented Apr 20, 2026

Link added:
#1215

Comment on lines +57 to +60
const num = Number(rank);
if (num >= 2 && num <= 10) {
return num;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still have the same issue.

In JavaScript, strings that represent valid numeric literals in the language can be safely converted to equivalent numbers. For examples, "0x02", "2.1", or "0002".
Does your function return the value you expected from each of the following function calls?

getCardValue("0x02♠");
getCardValue("2.1♠");
getCardValue("0002♠");

});

// Case 6: Invalid angles
test('should return "Invalid angle" for values out of range', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Would be clearer to specify exactly what values are considered "out of range".

Comment on lines +42 to +44
expect(getAngleType(0)).toBe("Invalid angle");
expect(getAngleType(-10)).toBe("Invalid angle");
expect(getAngleType(361)).toBe("Invalid angle");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not test both boundary cases?

@cjyuan cjyuan 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 Apr 20, 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.

3 participants