Skip to content

London | 26-ITP-May | Eyob Zeray | Sprint 3 | Implement and rewrite tests coursework - #1547

Open
eyob-tech wants to merge 4 commits into
CodeYourFuture:mainfrom
eyob-tech:coursework/sprint-3-implement-and-rewrite
Open

London | 26-ITP-May | Eyob Zeray | Sprint 3 | Implement and rewrite tests coursework#1547
eyob-tech wants to merge 4 commits into
CodeYourFuture:mainfrom
eyob-tech:coursework/sprint-3-implement-and-rewrite

Conversation

@eyob-tech

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

Implemented getAngleType, isProperFraction, and getCardValue in the implement directory, with tests covering boundary and edge cases for each. Rewrote the same test cases using Jest in rewrite-tests-with-jest. All Jest tests pass via npm test.

@eyob-tech eyob-tech 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 22, 2026
@eyob-tech eyob-tech changed the title London | 26-ITP-May | Eyob Zeray | Sprint 3 | Implement solutions and rewrite tests with Jest London | 26-ITP-May | Eyob Zeray | Sprint 3 | Implement and rewrite tests coursework Jul 22, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 27, 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.

Very close to be complete, one test case left.

});

// Case: improper fractions
test('should return false when the fraction is improper', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do you have a test case here for negative improper fractions?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hey Lon, good spot — you were right, I hadn't covered negative improper fractions. Added a test for isProperFraction(-7, 3) (should return false) and checked the implementation handles it fine since it uses Math.abs() in the comparison. Just pushed the fix, ready for another look whenever you get a chance

@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 27, 2026
@eyob-tech eyob-tech 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 27, 2026
@eyob-tech
eyob-tech requested a review from LonMcGregor July 27, 2026 16:18
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. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants