-
-
Notifications
You must be signed in to change notification settings - Fork 195
West Midlands | ITP-May - 25| Jonathan Boahene | Sprint-2 | Module-Structuring-and-Testing-Data #664
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
base: main
Are you sure you want to change the base?
Conversation
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.
Unfortunately this has happened to me again, I sometimes work on different branches at the same time and forget to switch branches. Would you be able to assist me with any documentation on how to revert these changes from sprint 1 as I have no clue how to do this. |
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.
Trying to delete unrelated files
The "Files changed" tab shows the difference between your branch ( As a result, when we delete files that were originally found in the Normal way to revert changes is to use An alternative approach to revert changes made to a file in this branch is to replace the file by the version of the file in
|
The last option which seems pretty much the obvious choice for me to follow, wont replacing the files on the coursework/sprint-2 branch with the "main" files cause me to work on the same changes I made earlier on just the branch to vanish thereby having to redo the work twice? |
You only need to revert the modified files that are NOT inside the "Sprint-2" folder, as they are not related to Sprint-2 exercise. |
I don't quite understand the instruction then, but I am available for short call on video if you're available to help me figure this out, thank you. |
Sure. Send a huddle to me on Slack? "CJ Yuan". You can just share your screen. |
1397c74
to
4e090d9
Compare
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
In this pull request I have added improved solutions and comprehensive tests for Sprint 2 of Module-Structuring-and-Testing-Data.
I refactored functions to handle edge cases and ensure correct formatting, such as converting 24-hour time strings to 12-hour clock format with am/pm.
The code now includes robust test cases for different input scenarios, including midnight, noon, single-digit hours, and times close to midnight and noon.
These changes enhance reliability and maintainability, making the code easier to understand and verify for a wide range of data inputs.
Questions
Ask any questions you have for your reviewer.