Skip to content

Fix another regression caused by #609 (for develop).#646

Merged
pstaabp merged 1 commit into
openwebwork:developfrom
drgrice1:bug/another-609-regression-develop
Feb 6, 2022
Merged

Fix another regression caused by #609 (for develop).#646
pstaabp merged 1 commit into
openwebwork:developfrom
drgrice1:bug/another-609-regression-develop

Conversation

@drgrice1

Copy link
Copy Markdown
Member

If a problem sets the answer to be a formula with an assigment, (something like Formula("x = 5") then all answers are counted
incorrect and a warning is displayed that the evaluated answer is not an answer hash. This worked prior to #609. The cause of this was the removal of a line that should not have been removed that converts the other answer being compared to to a Formula if it is not already.

Note that the original issue that was attempted to be fixed by #609 still is fixed with this change.

This fixes issue #644 that I just submitted about this.

This is #645 for develop.

If a problem sets the answer to be a formula with an assigment,
(something like `Formula("x = 5")` then all answers are counted
incorrect and a warning is displayed that the evaluated answer is not an
answer hash.  This worked prior to openwebwork#609.  The cause of this was the
removal of a line that should not have been removed that converts the
other answer being compared to to a Formula if it is not already.

Note that the original issue that was attempted to be fixed by openwebwork#609
still is fixed with this change.

This fixes issue openwebwork#644 that I just submitted about this.

@pstaabp pstaabp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does seem to fix this error and I did look back in the history and see that the line you added is restored.

@pstaabp pstaabp merged commit c53ac72 into openwebwork:develop Feb 6, 2022
@drgrice1 drgrice1 deleted the bug/another-609-regression-develop branch February 7, 2022 04:11
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.

3 participants