Skip to content

Glasgow | 26-ITP-May | Sandani Kannangara | Sprint 3 | Implement And Rewrite Tests#1374

Open
SandzSoft wants to merge 6 commits into
CodeYourFuture:mainfrom
SandzSoft:coursework/sprint-3
Open

Glasgow | 26-ITP-May | Sandani Kannangara | Sprint 3 | Implement And Rewrite Tests#1374
SandzSoft wants to merge 6 commits into
CodeYourFuture:mainfrom
SandzSoft:coursework/sprint-3

Conversation

@SandzSoft

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

Changelist

Completed the "1-implement-and-rewrite-tests" section of Sprint 3.

  • Implemented getAngleType
  • Implemented isProperFraction
  • Implemented getCardValue
  • Added assertion tests in the implement files
  • Rewrote tests using Jest
  • Covered valid, boundary, and invalid test cases

@github-actions

This comment has been minimized.

@SandzSoft SandzSoft changed the title Glasgow | 26-ITP-May | Sandani Kannangara | Sprint 3 |Coursework | Implement And Rewrite Tests Glasgow | 26-ITP-May | Sandani Kannangara | Sprint 3 | Implement And Rewrite Tests Jun 21, 2026
@SandzSoft SandzSoft 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 Jun 21, 2026
Comment thread Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js Outdated
Comment on lines +24 to +36
test("handles proper negative fractions", () => {
expect(isProperFraction(-4, 7)).toEqual(true);
expect(isProperFraction(4, -7)).toEqual(true);
});

test("handles improper negative fractions", () => {
expect(isProperFraction(-7, 4)).toEqual(false);
expect(isProperFraction(7, -4)).toEqual(false);
});

test("returns false when numerator equals denominator", () => {
expect(isProperFraction(4, 4)).toEqual(false);
});

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 also test cases with negative numerator and negative denominator.

@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 Jun 27, 2026
@SandzSoft SandzSoft 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 Jun 27, 2026
@cjyuan

cjyuan commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Changes look good.

@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 Jun 28, 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. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants