Repository navigation
London | 26-ITP-Sep |Shirin Panahian | Sprint 2 | Implement and rewrite tests #1699
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
Open
shirinpanahian
wants to merge
19
commits into
CodeYourFuture:main
Choose a base branch
from
shirinpanahian:coursework/sprint-3-implement-and-rewrite
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
67f2eef
add function code and compelete test
shirinpanahian 93f7eca
write jest code for 0 to equal 180
shirinpanahian 39e69d4
write jest code for Reflex angle
shirinpanahian 27a2d6b
jest test passed
shirinpanahian f476b9f
code work for basic test
shirinpanahian 6f511b3
code work for equal number
shirinpanahian caaac8f
add Math.abs for negative value
shirinpanahian fe8068f
Add Both negative test
shirinpanahian 735b51d
simplify function
shirinpanahian 3e3fd1f
Node test is passed
shirinpanahian f88c295
complete jest test
shirinpanahian 9771ba6
test pass
shirinpanahian c8ff457
node test pass for all value
shirinpanahian c67c95d
last touch angle code
shirinpanahian 9bfa313
jest test is finish
shirinpanahian f3bd1c1
cover angle categories and invalid inputs
shirinpanahian a734d05
expand getCardValue test coverage
shirinpanahian a806e26
improve isProperFraction test descriptions
shirinpanahian 72cc5e7
add more example
shirinpanahian 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
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
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.
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.
According to the spec defined in
1-get-angle-type.js, the function only needs to handle arguments of type number, and any number that cannot be classified as one of the above named angles are invalid angles.Could you update this test and the function implementation accordingly?
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.
I've updated the function to handle numeric inputs and throw an "Invalid angle" error for numbers that don't match any of the named angle types. I've also updated the tests to cover the valid angle types and invalid numeric values.