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: pythonwhat/test_funcs/test_comp.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
MSG_NOT_CALLED="FMT:The system wants to check the {ordinal} {typestr} you defined but hasn't found it."
8
8
MSG_PREPEND="FMT:Check your code in the {child[part]} of the {ordinal} {typestr}. "
9
9
10
-
MSG_INCORRECT_ITER_VARS="FMT:Have you used the correct iterator variables in the {parent[ordinal]} {parent[typestr]}? Make sure you use the correct names!"
10
+
MSG_INCORRECT_ITER_VARS="FMT:Have you used the correct iterator variables in the {parent[ordinal]} {parent[typestr]}? Be sure to use the correct names."
11
11
MSG_INCORRECT_NUM_ITER_VARS="FMT:Have you used {num_vars} iterator variables in the {parent[ordinal]} {parent[typestr]}?"
12
12
MSG_INSUFFICIENT_IFS="FMT:Have you used {sol_len} ifs inside the {parent[ordinal]} {parent[typestr]}?"
Copy file name to clipboardExpand all lines: tests/test_test_comp.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ def test_fail_3(self):
39
39
self.data["DC_CODE"] ="[a + str(b) for a,b in x.items()]"
40
40
sct_payload=helper.run(self.data)
41
41
self.assertFalse(sct_payload['correct'])
42
-
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first list comprehension? Make sure you use the correct names!")
42
+
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first list comprehension? Be sure to use the correct names.")
self.assertEqual("Have you used the correct iterator variables in the first dictionary comprehension? Make sure you use the correct names!", sct_payload['message'])
337
+
self.assertEqual("Have you used the correct iterator variables in the first dictionary comprehension? Be sure to use the correct names.", sct_payload['message'])
self.data["DC_CODE"] ="(a + str(b) for a,b in x.items())"
420
420
sct_payload=helper.run(self.data)
421
421
self.assertFalse(sct_payload['correct'])
422
-
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first generator expression? Make sure you use the correct names!")
422
+
self.assertEqual(sct_payload['message'], "Have you used the correct iterator variables in the first generator expression? Be sure to use the correct names.")
Copy file name to clipboardExpand all lines: tests/test_test_lambda_function.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ def test_fail_8(self):
68
68
self.data["DC_CODE"] ="echo_word = lambda word, echo = 1: word * int(echo)"
69
69
sct_payload=helper.run(self.data)
70
70
self.assertFalse(sct_payload['correct'])
71
-
self.assertEqual(sct_payload['message'], "Check your definition of the first lambda function. Calling it with arguments <code>('a', '2')</code> doesn't result in an error, but it should!")
71
+
self.assertEqual(sct_payload['message'], "Check your definition of the first lambda function. Calling it with arguments <code>('a', '2')</code> doesn't result in an error, but it should.")
0 commit comments