-
-
Notifications
You must be signed in to change notification settings - Fork 336
London | 26-ITP-Jan | Boualem Larbi Djebbour | sprint 3 | implement and rewrite tests coursework #1261
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
djebsoft
wants to merge
18
commits into
CodeYourFuture:main
Choose a base branch
from
djebsoft:sprint-3/implement-and-rewrite-tests-coursework
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
London | 26-ITP-Jan | Boualem Larbi Djebbour | sprint 3 | implement and rewrite tests coursework #1261
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0c4631a
Implement getAngleType function and add tests
djebsoft 4a2804d
Implement a function getAngleType and Write tests to cover all cases
djebsoft 6b4ee50
implement isproperfraction function and rewrite tests to cover all cases
djebsoft 7d502dc
Implement getCardValue function and added tests for valid and invalid…
djebsoft 82958b5
validate the first if statement to include the condition there the ra…
djebsoft c286e4a
Revert "validate the first if statement to include the condition ther…
djebsoft a70220f
add tests for all angle types and invalid angles
djebsoft bc11ec7
Write tests in Jest syntax to cover all combinations for isProperFrac…
djebsoft 7eab738
Write tests in Jest syntax to cover all possible outcomes.
djebsoft 3f7c3f8
enhancement: Implement getCardValue function to return correct card v…
djebsoft 6769341
fixed syntax error
djebsoft f231516
combined similar items into one category
djebsoft 608f1db
combined tha ace cases in one category
djebsoft 9a3c314
added tests for negative numerator/denominator cases
djebsoft c099074
added tests for negative numerator/denominator cases
djebsoft fa537b2
added tests for negative numerator/denominator cases
djebsoft 36e8c14
converted the cardRnk string to a number and added a check for the ac…
djebsoft af851f3
combine the tests with the same description into the same group
djebsoft 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
Implement getCardValue function and added tests for valid and invalid…
… inputs
- Loading branch information
commit 7d502dca76fdbfc2118f7ed763d147757f2ea6ba
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
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.
Does your function return the value you expected from each of the following function calls?
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 tested all these sases and yes it does
the return is either invalid suit or invalid rank
but I made some changes in case as follows:
I declared the suit and rank parts as different variables to get the valid results only when the input maches exactly the condition