-
Notifications
You must be signed in to change notification settings - Fork 22
Assignment 1 #21
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: Assignment1
Are you sure you want to change the base?
Assignment 1 #21
Conversation
modified: PrincessBrideTrivia/PrincessBrideTrivia/Program.cs modified: PrincessBrideTrivia/PrincessBrideTrivia/Question.cs
modified: PrincessBrideTrivia/PrincessBrideTrivia.Tests/ProgramTests.cs fixed unit tests to match new functionality updated assertions to use HasCount modified: PrincessBrideTrivia/PrincessBrideTrivia/Program.cs fixed CalculateScore to return 0 for no correct answers and double casting
changed LoadQuestion to more easily define the size of question blocks from the text file
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.
Pull Request title includes "Assignment 1" in the title ✔
Partner has also made a commit ✔
Pull Request targets Assignment 1 branch ✔
Issue 1: Application no longer crashes ✔
Issue 2: Unit test properly passes ✔
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.
Assignment Details
- Pull Request title includes "Assignment 1" in the title ✔
- Partner has also made a commit ✔
- Pull Request targets Assignment 1 branch ✔
- Issue 1: Application no longer crashes ✔
- Issue 2: Unit test properly passes ✔
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.
Assignment Details
Pull Request title includes "Assignment 1" in the title ✔
Partner has also made a commit ✔
Pull Request targets Assignment 1 branch ✔
Issue 1: Application no longer crashes ✔
Issue 2: Unit test properly passes ✔
Great job folks!
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.
Pull Request Overview
This PR addresses two main issues in a Princess Bride Trivia application as part of Assignment 1. The changes fix a crash in the application and ensure unit tests pass properly.
- Fixed division by zero error in percentage calculation method
- Corrected missing assignment of questions to array in LoadQuestions method
- Updated test file path generation to use proper temporary directory
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
README.md | Updated assignment checklist to mark all requirements as completed |
Question.cs | Added blank line for code formatting |
Program.cs | Fixed GetPercentCorrect method and LoadQuestions array assignment bug |
ProgramTests.cs | Fixed file path generation and array initialization syntax |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Merged classmate suggestion
SummarySummary
CoveragePrincessBrideTrivia - 58.5%
|
@nicoduvekot Waiting for your review |
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.
Assignment Details
- Pull Request title includes "Assignment 1" in the title ✔
- Partner has also made a commit ✔
- Pull Request targets Assignment 1 branch ✔
- Issue 1: Application no longer crashes ✔
- Issue 2: Unit test properly passes ✔
Extra Credit
- Come up with a new feature for the application
- Issue 3: Add a new feature request implemented ❌ Not implemented
- Issue 3: Feature request unit tested ❌ Not implemented
@nicoduvekot @Hellothereyoko