Skip to content

London | 26-ITP-May | Edina Kurdi | Sprint 3 | Implement and rewrite tests#1468

Open
edinakurdi wants to merge 6 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-3-implement-and-rewrite
Open

London | 26-ITP-May | Edina Kurdi | Sprint 3 | Implement and rewrite tests#1468
edinakurdi wants to merge 6 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-3-implement-and-rewrite

Conversation

@edinakurdi

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 and tested angles, proper fraction and cards functions, also tested using jest

Questions

  • With the card implementation, I tried making it cleaner, but nested if-statements are not the best for clean code. Is that correct? Would there be a more structured way of dealing with this? I think I was on the right track with creating the suits array inside the function, but then it got a bit messy. Are there any techniques that would help me gear towards a better solution here?

  • Also, when trying to write tests, how many of the same kind is enough? for instance, with the cards, would i need to test for each number value when its a number card, or is it enough to test for 2-3 numbers?

@edinakurdi edinakurdi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant