Skip to content
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

Develop multi answer fix #302

Merged
merged 5 commits into from
Jun 16, 2017
Merged

Conversation

mgage
Copy link
Member

@mgage mgage commented Jun 4, 2017

This is companion pull request to webwork2 PR #767. It addresses bugs that occur in multiAnswer and matrix answer evaluators. Many of the bugs arose because of the change to using the answer evaluator as the primary the primary object for a given answer —rather than the answer blank. (This helps regularize the increasing number of answer evaluators that use more than one answer blank — e.g. matrices and multiAnswer. At the moment I don’t know of any answer evaluators that share an answer blank — if that comes up there are mechanisms to deal with it on a case by case basis — but no organized protocol.)

mgage added 5 commits May 21, 2017 17:32
The NAMED_ANSWER_EXTENSION() routine needs to update the PGresponse object in the PGanswergroup.  Previously,
when KEPT_ANSWERS was used,  the routine calling NAMED_ANSWER_EXTENSION() had to add the extension
answer blank to the KEPT_ANSWERS queue using RECORD_FORM_LABEL.  Now the routine must include a key/value
answer_group_name=>’name of answer group’ so the entire call in multiAnswer looks like:
            $data->named_ans_rule_extension(
  	 	$name,$size, answer_group_name => $self->{answerName},
  	 	@_);
…ultiAnswer and matrix answer evaluators.

Debugging messages have been removed
@mgage
Copy link
Member Author

mgage commented Jun 6, 2017

I believe this PR is ready for extensive checking. It should be checked on questions that call multiAnswer() and check matrices. I have attached the set definition file containing the questions I used for checking. You will need to change the extension from .txt to .def before uploading it to your webwork course.
setmultiAnswer.txt

@pstaabp pstaabp merged commit 8b52ed2 into openwebwork:develop Jun 16, 2017
@mgage mgage deleted the develop_multiAnswer_fix branch June 25, 2017 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants