Skip to content

Manchester | 26-ITP-SEP | Monsur Abdulrahman | Sprint 2 | Implement-and-rewrite-tests - #1732

Open
Monsur0001 wants to merge 10 commits into
CodeYourFuture:mainfrom
Monsur0001:coursework/sprint-2-implement-and-rewrite
Open

Monsur0001 wants to merge 10 commits into
CodeYourFuture:mainfrom
Monsur0001:coursework/sprint-2-implement-and-rewrite

Conversation

@Monsur0001

Copy link
Copy Markdown

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

Task code

CYF-1059

Changelist

Implemented and rewrote test cases

@Monsur0001 Monsur0001 added 📅 Sprint 2 Assigned during Sprint 2 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 Oct 18, 2026

@cjyuan cjyuan left a comment

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.

  • Could you use a formatter to keep the code consistently format?

  • Code looks good. Well done.

  • You missed implement the Jest tests in rewrite-tests-with-jest.

Comment on lines +29 to +37
test("Classifies reflex angles", () => {
const reflex = getAngleType(270);
assert.equal(reflex, "Reflex angle");
});

test("Handles invalid angles (negative)", () => {
const invalidNegative = getAngleType(-30);
assert.equal(invalidNegative, "Invalid angle");
}); No newline at end of file

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 the boundary cases?

Also, you could consider testing multiple values, including boundary cases, within each category.

@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 Oct 23, 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 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants