Skip to content

WM | 25-ITP-May | Nahom Mesfin | Sprint 3 coursework #677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

nahommesfin77
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

In Implement, I wrote functions step-by-step with assertions to cover different cases. In Rewrite, I converted previous assertions to use Jest syntax for clearer and easier testing. In Practice I built and ran tests using Jest and vscode's code runner to ensure all functions meet requirements.

@nahommesfin77 nahommesfin77 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 21, 2025
@LonMcGregor LonMcGregor added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 22, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good start, but you may want to take more time to work on this sprint - there are a few tasks that have problems.

@@ -9,6 +9,7 @@

function isProperFraction(numerator, denominator) {
if (numerator < denominator) return true;

Choose a reason for hiding this comment

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

What happens if I call isProperFraction(-70,5)?

-70/5 is not a proper fraction.

if (rank === "A") return 11;
if (rank >= '2' && rank <= '9') return Number(rank);

Choose a reason for hiding this comment

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

What happens if I call getCardValue("222♥")?

@@ -1,5 +1,11 @@
function countChar(stringOfCharacters, findCharacter) {
return 5
let count = 0;

Choose a reason for hiding this comment

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

This is very minor - try to keep the indentation the same for all the code. here your first declaration is indented further.

@@ -1,5 +1,8 @@
function getOrdinalNumber(num) {

Choose a reason for hiding this comment

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

In english we would say "21st" - can you make your code work in these general cases too?

function repeat() {
return "hellohellohello";
function repeat(str, count) {
return str.repeat(count);

Choose a reason for hiding this comment

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

What about your error condition you are testing for?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 22, 2025
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.

2 participants