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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
All notable changes to the pythonwhat project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
5
+
## 2.23.2
6
+
7
+
- Update behaviour of has_expr() default feedback message. If the student's evaluation is too long, it is now shortened and an ellipsis is added.
8
+
5
9
## 2.23.1
6
10
7
11
- Fix string formatting in has_expr(). Strings will now have quotes in error messages. Leading and trailing whitespace is no longer removed.
assertoutput["message"] =="Check your call of <code>print()</code>. Did you correctly specify the first argument? Expected something different."# nopep8
729
729
730
730
731
-
deftest_has_equal_value_dont_wrap_too_long():
731
+
deftest_has_equal_value_shorten_submission():
732
732
sol="""print('short text')"""
733
733
stu="""print('This text is longer than 50 characters if I copy it 3 times. This text is longer than 50 characters if I copy it 3 times. This text is longer than 50 characters if I copy it 3 times.')"""# nopep8
assertoutput["message"] =="Check your call of <code>print()</code>. Did you correctly specify the first argument? Expected <code>'short text'</code>, but got <code>'This text is longer than 50 characters if I ...</code>."# nopep8
assertoutput["message"] =="Check your call of <code>print()</code>. Did you correctly specify the first argument? Expected something different."# nopep8
744
759
745
760
## Check has no error ---------------------------------------------------------
0 commit comments