Skip to content

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

Closed

Conversation

alagurajan-roja
Copy link

@alagurajan-roja alagurajan-roja commented Jul 7, 2025

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_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@alagurajan-roja alagurajan-roja added the Needs Review Participant to add when requesting review label Jul 7, 2025
@alagurajan-roja
Copy link
Author

Hi @cjyuan ,
Could you please review my sprint 3 code

@cjyuan cjyuan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Jul 17, 2025
Copy link
Contributor

@cjyuan cjyuan left a 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 the sprint3_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?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 17, 2025
Copy link
Contributor

@cjyuan cjyuan left a 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?

Comment on lines +20 to +24
test("should return 11 for AceCard", () => {
const AceCard = getCardValue("A♥");
expect(AceCard).toEqual(11);
});

Copy link
Contributor

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.

Comment on lines +16 to +17
const facecards = getCardValue("Q♥");
expect(facecards).toEqual(10);
Copy link
Contributor

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.

Comment on lines +10 to +13
test("should return rank for Number Cards", () => {
const fiveofHearts = getCardValue("5♥");
expect(fiveofHearts).toEqual(5);
});
Copy link
Contributor

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.

@cjyuan cjyuan added the 👀 Review Git Changes requested to do with Git label Jul 18, 2025
@alagurajan-roja
Copy link
Author

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?

Hi @cjyuan,
I tried to restore Sprint 1 and Sprint 2, but I wasn't able to do it. I followed ChatGPT's steps, but things went in a completely different direction.
I'll go ahead and create a new pull request.
image

@alagurajan-roja
Copy link
Author

alagurajan-roja commented Jul 19, 2025

Hi @cjyuan.
i Close this pull request
i created new pull request because I'm f facing some issues in my vscode.
#670

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Review Git Changes requested to do with Git Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants