forked from Khan/khan-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make multiple problems unanswered whenever any part is unanswered.
When a score is marked as empty the framework displays a "more parts to answer" message. Multiple-type exercises run validators for each of their parts and then decide whether to call the combined result correct, unanswered, or incorrect. This turns answers that are partially correct, partially empty into unanswered (rather than wrong). If any of the parts are wrong, the overall guess is graded wrong, no matter if any parts are empty. Some finer points are unsimplified fractions and coefficients. The proper-fraction type has three modes of simplification: - "required" (unsimplified result is not accepted, but the user is not graded wrong; the score is marked empty, with a message); - "enforced" (unsimplified result is marked as incorrect); - "optional" (unsimplified result is silently accepted). A proper-field defaults to "required" and an untyped multiple part defaults to "number" (which includes proper). When a proper field is a part of a multiple problem its simplification option should be respected. Moreover, if the user submits an unsimplified fraction, but also forgets to fill another field, the simplification reminder should be forwarded. The coefficient-field can be left unfilled and defaults to 1. A problem composed of only coefficient fields will now never be considered unanswered (as all its parts have defaults). This is a semantic change, a couple of tests were modified. If any exercise would happen to rely on the any-part-empty-combined-wrong behavior it will need to be changed.
- Loading branch information
Showing
2 changed files
with
55 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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 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