Skip to content

London|26-ITP-January|Alexandru Pocovnicu|Sprint 3 |stretch#951

Open
alexandru-pocovnicu wants to merge 17 commits intoCodeYourFuture:mainfrom
alexandru-pocovnicu:coursework/sprint-3-stretch
Open

London|26-ITP-January|Alexandru Pocovnicu|Sprint 3 |stretch#951
alexandru-pocovnicu wants to merge 17 commits intoCodeYourFuture:mainfrom
alexandru-pocovnicu:coursework/sprint-3-stretch

Conversation

@alexandru-pocovnicu
Copy link

@alexandru-pocovnicu alexandru-pocovnicu commented Feb 10, 2026

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

set up script and test files for card validator, done tdd to check if a password and credit card are valid

##Questions
got stuck on how to check if a password was used before , don't really know where or what to look for

@github-actions

This comment has been minimized.

@alexandru-pocovnicu alexandru-pocovnicu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 10, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 10, 2026
@github-actions

This comment has been minimized.

3 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@alexandru-pocovnicu alexandru-pocovnicu changed the title London|26-ITP-January|Alexandru PocovnicuSprint 3 |stretch London|26-ITP-January|Alexandru Pocovnicu|Sprint 3 |stretch Feb 10, 2026
@alexandru-pocovnicu alexandru-pocovnicu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 10, 2026
Comment on lines 5 to 14
Copy link
Contributor

Choose a reason for hiding this comment

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

When one of these tests fails, these test descriptions do not quite tell the developer why their function failed.

Can you make the test descriptions on this file more informative?

Copy link
Contributor

Choose a reason for hiding this comment

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

These three test descriptions are greatly improved! Why not also update the remaining test descriptions?

@cjyuan cjyuan 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. labels Feb 17, 2026
@alexandru-pocovnicu
Copy link
Author

thank you

@alexandru-pocovnicu alexandru-pocovnicu 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 Feb 18, 2026
Comment on lines 32 to 36
Copy link
Contributor

Choose a reason for hiding this comment

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

When this test fails, it only means the function fails to recognise a valid password -- which may or may not related to uppercase letters.

I think you can consider grouping all valid cases into the same category.

Copy link
Contributor

Choose a reason for hiding this comment

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

This sample does not satisfy the criterium: it meets all other conditions except the one you're targeting.

There are a few more test samples in this file that fit this description.

Can you update them accordingly?

@cjyuan cjyuan 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. labels Feb 18, 2026
@alexandru-pocovnicu
Copy link
Author

thank you, I'm still not sure about checking if the password has been used before, at the moment it's just checking against an empty array

@alexandru-pocovnicu alexandru-pocovnicu 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 Feb 19, 2026
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. Well done!

I'm still not sure about checking if the password has been used before, at the moment it's just checking against an empty array

What are you unsure about?

Comment on lines +26 to +34
test("should return true if at least one of the digits isn't the same as the others",()=>{
expect(validateNumber(3636363636363636)).toEqual(true)
})
test("should return true if at least one of the digits isn't the same as the others", () => {
expect(validateNumber(3333333333333336)).toEqual(true);
});
test("should return false if at least one of the digits isn't different from all the others", () => {
expect(validateNumber(2222222222222222)).toEqual(false);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: Ask an AI tool how these test descriptions can be made more concise.

No change needed. 3

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments