Fix incorrect usage of MCQJudge.judge() in README.md and docs/quickst… #116
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.
Description
This PR fixes the incorrect usage of the
MCQJudge.judge()
method in two code examples:README.md
docs/quickstart/mcq.md
Previously, the method was called with only one argument, which caused the score to always return
false
due to the missing second argument (the correct answer). This PR updates both examples to pass the required second argument, ensuring correct functionality.Changes
README.md
example to include the correct call toMCQJudge.judge(answer, correct_answer)
docs/quickstart/mcq.md
with the same fix.Testing
Verified the correctness of the method call and confirmed that the score is calculated properly when both arguments are passed.
Related Issue
Fixes #114