Skip to content

Commit e745d85

Browse files
Merge pull request #200 from lambda-feedback/tr169-flag-for-detailed-feedback
Improved some of the detailed feedback messages
2 parents 9c11c29 + 3bf5641 commit e745d85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/feedback/symbolic_comparison.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979
}[tag]
8080
feedback_generators["IDENTIFY_REASON"] = lambda tag: lambda inputs: {
8181
"UNKNOWN": None,
82-
"ONE_ADDITION_TO_SUBTRACTION": f"{inputs['criterion'].children[0].content_string()} is true if one addition is changed to a subtraction or vice versa.",
83-
"ONE_EXPONENT_FLIP": f"{inputs['criterion'].children[0].content_string()} is true if one exponent has its sign changed.",
84-
"ONE_SWAP_ADDITION_AND_MULTIPLICATION": f"{inputs['criterion'].children[0].content_string()} is true if one addition is replaced with a multiplication or vice versa.",
82+
"ONE_ADDITION_TO_SUBTRACTION": f"It is likely that an addition was replaced with a subtraction (or vice versa) when calculating the response.",
83+
"ONE_EXPONENT_FLIP": f"It is likely that some exponent had the incorrect sign, or that a multiplication was replaced by a division (or vice versa).",
84+
"ONE_SWAP_ADDITION_AND_MULTIPLICATION": f"It is likely that an addition was replaced with a multiplication or vice versa.",
8585
}[tag]
8686
feedback_generators["GET_CANDIDATES"] = lambda tag: lambda inputs: None
8787
feedback_generators["SYNTACTICAL_EQUIVALENCE"] = lambda tag: lambda inputs: {

app/symbolic_comparison_evaluation_tests.py

+1
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ def test_no_reserved_keywords_in_old_format_input_symbol_alternatives(self):
11751175
}
11761176
),
11771177
("-2525", "-2525", "response = a*50 + d*51*25 where a=77; d=-5", True, [], {}),
1178+
("-3150", "-3150", "response = a*50 + d*50*25 where a=373/4; d=-25/4", True, [], {}),
11781179
("4/9", "(2/9*(3*b-2)^(3/2)-b^2/4-b)-(2/9*(3*a-2)^(3/2)-a^2/4-a)", "response = answer where a=2; b=6", True, [], {}),
11791180
("0", "0", "2*tan(response)*tan(response) = 0", True, [], {}),
11801181
]

0 commit comments

Comments
 (0)