generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 272
London | 25-ITP-September | Alexandru Pocovnicu | Coursework/sprint 3 implement and rewrite #766
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
alexandru-pocovnicu
wants to merge
10
commits into
CodeYourFuture:main
from
alexandru-pocovnicu:coursework/sprint-3-implement-and-rewrite
Closed
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9dd422c
completed function to get angle types and wrote the assertions for it
alexandru-pocovnicu d90591a
wrote assertions for extra cases and updated the function accordingly
alexandru-pocovnicu a447339
added assertions for cardvalue-updated getCardValue function accordin…
alexandru-pocovnicu 4c94663
updated jest
alexandru-pocovnicu b806538
wrote test cases for acute, obtuse, straight, and reflex angles
alexandru-pocovnicu 3143f7e
created tests for identifying improper fractions and negative proper …
alexandru-pocovnicu 463d531
added tests for handling number cards and face cards in getCardValue …
alexandru-pocovnicu 801f259
refactor password validation logic and enhance test coverage for vari…
alexandru-pocovnicu fcd1c54
refactor angle type checks for improved readability and consistency
alexandru-pocovnicu 47e53a4
refactor angle type checks and improve test assertions for clarity an…
alexandru-pocovnicu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,30 @@ | ||
| function passwordValidator(password) { | ||
| return password.length < 5 ? false : true | ||
| //console.log(password !== password.toUpperCase()); | ||
| let password2=password.split("") | ||
| console.log(password2); | ||
| let newPassword=[]; | ||
| // if ( | ||
| // password.length >= 5 && | ||
| // password !== password.toLowerCase() && | ||
| // password !== password.toUpperCase() | ||
|
|
||
| // ) { | ||
| // return true; | ||
| // } | ||
| for(element of password2){ | ||
| if ( | ||
| password2.length >= 5 && | ||
| /[A-Za-z]/.test(password2) | ||
|
|
||
| ) { | ||
| return true; | ||
| } | ||
| } | ||
|
|
||
| return false; | ||
| } | ||
|
|
||
|
|
||
| module.exports = passwordValidator; | ||
| console.log(passwordValidator("434398866")); | ||
|
|
||
| module.exports = passwordValidator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.