Skip to content

Commit a59692c

Browse files
Merge pull request #209 from lambda-feedback/tr175-handle-as-keyword-in-expressions
Fixed error in test
2 parents 317d17f + 9637df5 commit a59692c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/expression_utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def substitute(string, substitutions):
343343
substitutions (required) : a list with elements of the form (string,string)
344344
or ((string,list of strings),string)
345345
Output:
346-
A string that is the input string where any occurence of the left element
346+
A string that is the input string where any occurrence of the left element
347347
of each pair in substitutions have been replaced with the corresponding right element.
348348
If the first element in the substitution is of the form (string,list of strings) then the substitution will only happen if the first element followed by one of the strings in the list in the second element.
349349
Remarks:

app/symbolic_comparison_evaluation_tests.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,8 @@ def test_as_substring_in_expression(self):
15561556

15571557
answer = "sin(omega t)*a"
15581558
result = evaluation_function(response, answer, params)
1559-
assert result["is_correct"] is False
1559+
assert result["is_correct"] is True
1560+
15601561

15611562
if __name__ == "__main__":
15621563
pytest.main(['-xk not slow', "--tb=line", '--durations=10', os.path.abspath(__file__)])

0 commit comments

Comments
 (0)