-
-
Notifications
You must be signed in to change notification settings - Fork 195
WESTMIDLANDS| ITP-MAY 2025| ROJA ALAGURAJAN| Module Structuring and Testing Data|Sprint-3 #645
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
WESTMIDLANDS| ITP-MAY 2025| ROJA ALAGURAJAN| Module Structuring and Testing Data|Sprint-3 #645
Conversation
Hi @cjyuan , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted files are still considered modified files. One way to revert changes made to the files in Sprint-1
and Sprint-2
folders is to copy the version of the files from your main
branch.
- You can download your
main
branch from GitHub as a ZIP file, then copy Sprint-1 and Sprint-2 folders from the ZIP to your repo while you are on thesprint3_module
branch in VSCode.
Can you restore the files in Sprint-1 and Sprint-2 folders in this branch by the version of the corresponding files in main
?
Sprint-3/3-mandatory-practice/implement/get-ordinal-number.test.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. I have a few more suggestions.
In addition, can you restore the files in Sprint-1 and Sprint-2 folders in this branch by the version of the corresponding files in your main
branch?
test("should return 11 for AceCard", () => { | ||
const AceCard = getCardValue("A♥"); | ||
expect(AceCard).toEqual(11); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is similar to the test at lines 3-7.
const facecards = getCardValue("Q♥"); | ||
expect(facecards).toEqual(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also test J and K to make the test more comprehensive.
test("should return rank for Number Cards", () => { | ||
const fiveofHearts = getCardValue("5♥"); | ||
expect(fiveofHearts).toEqual(5); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also consider testing more values, especially the boundary cases like 2 and 10.
Hi @cjyuan, |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.