Skip to content

Commit e6aa778

Browse files
authored
Merge pull request #1200 from drgrice1/format-student-answer-reduced-typo
Fix a typo that causes reductions of constants to persist where they shouldn't.
2 parents 93043a3 + a0bc7ca commit e6aa778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Value/AnswerChecker.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ sub cmp_parse {
170170
/reduced/i and do {
171171
my $oldFlags = contextSet($context, reduceConstants => 1, reduceConstantFunctions => 0);
172172
$ans->{student_ans} = preformat($ans->{student_formula}->substitute()->string);
173-
contextSet($context, %{$oldFags});
173+
contextSet($context, %{$oldFlags});
174174
last;
175175
};
176176
warn "Unknown student answer format |$ans->{formatStudentAnswer}|";

0 commit comments

Comments
 (0)