-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
unorderedAnswer.pl conflict with other answer checkers. #670
Comments
This is the documented behavior of the unordered answer macro. From the
So if you are not using named answer checkers, you must put the Of course, it is not a great feature, and perhaps the macro could be rewritten to do better. But it is a very old macro, and one before many of the current features were made available. The |
I just noticed this too right after submitting this, that this is the "documented behavior". Really it is more like "documented bug" rather than "documented behavior". Still this is not clear from the wiki or the examples. So I've at least added a short cautionary note to the wiki since that's the first page that comes up as documentation for UNORDERED_ANS and it didn't mention this problem at all. Still I'd consider this a bug, not a feature. |
As a bug, it is an issue for the pg repository rather than this one. I don't know of a way to have github transfer it, so I am closing it here. |
Actually, where is the actual unorderedAnswer.pl file that gets used then? I can't find it in the pg repository, there are two versions of it and only in the OPL repo: OpenProblemLibrary/macros/CollegeOfIdaho/unorderedAnswer.pl This was actually something that I've always wondered. A web search doesn't help on this question either. By the way. Those two files differ slightly. |
OK, reopening |
The original file is
and the one that gets used will depend on the value of In the old days, before all the various individual college collections were unified in the OPL, different schools made their own macro collections, and some started with copies of the macros from other schools. (The |
@jwj61, there is a "Transfer issue" link just above the "Delete issue" link at the bottom of the right-hand sidebar. You can use that to move an issue from one repository to another, if you like. |
Thanks, I'll keep that in mind for the future. |
That's up to you. (But the usual terminology is that a bug is a result that is counter to the documented behavior, while a feature is a documented result. Since this is both documented and the intended result, it is not a bug. It may be a misfeature, but still a feature.) When the macro was originally written, the macro did not have access to information needed in order to make it work the way you want. In order to do that, it would need to know the name of the next answer blank that needs to have an answer checker assigned to it; but that was not available within the safe compartment (where the Much has changed with the way answer blanks are generated in the 15 or so years since |
The following is a minimal example showing the problem. Basically if there are two answer blanks that are supposed to be unordered and then one that follows that has a normal answer checker. The problem never accepts the answers in any order and in fact. The "show correct answers" always shows the answers in the opposite order.
Removing the third answer checker fixes the problem, and so does moving to named unordered answer checkers.
I've looked at the code a little bit in unorderedAnswer.pl, but I can't quite see what's wrong.
Here's the minimal example. The answers should be "x,x^2,x+x^2" or "x^2,x,x+x^2"
The text was updated successfully, but these errors were encountered: