generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 261
West Midlands | 25 Sep ITP | Iswat Bello | Sprint 3 | Implement and rewrite tests #800
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
Iswanna
wants to merge
34
commits into
CodeYourFuture:main
from
Iswanna:coursework/sprint-3-implement-and-rewrite
Closed
Changes from 4 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
f17635b
Implement getAngleType function and add assertion tests
Iswanna 3766d27
Add assertions to test function outputs
Iswanna f9eea26
Add test for when numerator is zero for stretch task
Iswanna cfda58c
Update getCardValue function to return correct numerical values and t…
Iswanna b7a2183
Add and verify Jest test cases for the function
Iswanna f028f06
Include package-lock.json to ensure consistent dependency versions
Iswanna fec9455
Write Jest tests to verify function behavior
Iswanna 0032765
Change random number check to return a string instead of throwing an …
Iswanna 69ddec4
Write Jest test cases for getCardValue function implementation
Iswanna 8c717df
Add more Jest test cases for getCardValue implementation
Iswanna 028ec7d
Update getAngleType implementation and add more test cases to verify …
Iswanna 6bcf17a
Fix inconsistent code indentation
Iswanna 00515f5
Add test cases for negative numerator/denominator and other edge case…
Iswanna 31446ec
Remove console.log debugging code from 3-get-card-value.js file
Iswanna 121ebe4
Add test cases and update getCardValue to handle all card ranks
Iswanna b46a6d3
Add additional test to verify getAngleType correctly handles float in…
Iswanna 273a36a
Update getAngleType and tests to classify zero degree as "Zero angle"…
Iswanna 48f2143
Add more Jest test cases for acute angles in getAngleType
Iswanna 9705d12
Add more jest test cases for obtuse angles in getAngleType
Iswanna 5c5e00b
Add a Jest test case for straight angle in getAngleType
Iswanna a66ab62
Add more Jest test cases for reflex angles in getAngleType
Iswanna 3b9f415
Add Jest test case for full rotation (360°) in getAngleType
Iswanna 5e0b672
Add more Jest test cases for invalid angles in getAngleType
Iswanna 8daafbd
Add test for 0 input to verify getAngleType returns 'Zero angle'
Iswanna 050e86a
Change expected output from true to false in isProperFraction test fo…
Iswanna df7ccfb
Add more Jest test cases for getCardValue to include 2 and 10
Iswanna 46aee35
Add tests for getCardValue with "1♠" and empty string arguments to en…
Iswanna 47809af
Change expected output to true for proper fractions with negative num…
Iswanna cfecb6c
Add edge case test cases for isProperFraction: floats, large numbers,…
Iswanna 9a88261
Change expected output to true for proper fraction with negative nume…
Iswanna 7a4e526
Refactor isProperFraction to improve readability and reduce repetition
Iswanna 5411c34
Change the target output in the comment to true for proper fraction w…
Iswanna 3b5e67d
Change false to true in the test description for proper fraction with…
Iswanna bbde7ad
Test multiple values in each test case
Iswanna 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
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.
The test description does not quite match the test being carried out.
Could also consider testing multiple values in each test.
Uh oh!
There was an error while loading. Please reload this page.
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.
Hi @cjyuan.
Thank you for the feedback. I have updated the test description to match the test. I have also tested more values for each test case.