You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
graph.add_evaluation_node(label, summary=label, details="Checks if "+str(expression)+" where "+str(subs)+".", evaluate=create_expression_check(expression))
236
-
graph.attach(label, label+"_TRUE", summary=str(expression)+" where "+str(subs), details=str(expression)+" where "+str(subs)+"is true.")
244
+
graph.add_evaluation_node(label, summary=label, details="Checks if "+expression.content_string()+" where "+", ".join([s.content_string() forsinsubs])+".", evaluate=create_expression_check(expression))
245
+
graph.attach(label, label+"_TRUE", summary=expression.content_string()+" where "+", ".join([s.content_string() forsinsubs]), details=expression.content_string()+" where "+", ".join([s.content_string() forsinsubs])+"is true.")
237
246
graph.attach(label+"_TRUE", END.label)
238
-
graph.attach(label, label+"_FALSE", summary="not "+str(expression), details=str(expression)+" is not true with"+str(subs)+".")
247
+
graph.attach(label, label+"_FALSE", summary="not "+expression.content_string(), details=expression.content_string()+" is not true when "+", ".join([s.content_string() forsinsubs])+".")
"summary": lambdaexpression, variations: criterion.children[0].content_string()+" is true if one addition is replaced with a multiplication or vice versa.",
261
275
"details": lambdaexpression, variations: "The following expressions are checked: "+", ".join([str(e) foreinvariations]),
("3", "x+1", "response=answer where x=2", True, ["response=answer where x=2_TRUE"], {}),
1105
1105
("1", "x+1", "response=answer where x=2", False, ["response=answer where x=2_ONE_ADDITION_TO_SUBTRACTION", "response candidates x - 1"], {}),
1106
1106
("5/3", "x/y+1", "response=answer where x=2; y=3", True, ["response=answer where x=2; y=3_TRUE"], {}),
1107
-
("15", "x/y+1", "response=answer where x=2; y=3", False, ["response=answer where x=2; y=3_ONE_EXPONENT_FLIP"], {}), #NOTE: Sympy reporesents input as (x+y)/y so flipping the exponent gives (x+y)*y instead of x*y+1
1107
+
("15", "x/y+1", "response=answer where x=2; y=3", False, ["response=answer where x=2; y=3_ONE_EXPONENT_FLIP"], {}), #NOTE: Sympy represents input as (x+y)/y so flipping the exponent gives (x+y)*y instead of x*y+1
1108
1108
("-1/3", "x/y+1", "response=answer where x=2; y=3", False, ["response=answer where x=2; y=3_ONE_ADDITION_TO_SUBTRACTION"], {}),
1109
1109
("13", "x+y*z-1", "response=answer where x=2; y=3; z=4", True, [], {}),
0 commit comments