Skip to content

Commit 263112a

Browse files
authored
Merge pull request #196 from datacamp/fix-less-exclamatory
remove exclamations from negative feedback
2 parents d7445c9 + c2aa35c commit 263112a

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

pythonwhat/test_funcs/test_comp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
MSG_NOT_CALLED = "FMT:The system wants to check the {ordinal} {typestr} you defined but hasn't found it."
88
MSG_PREPEND = "FMT:Check your code in the {child[part]} of the {ordinal} {typestr}. "
99

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."
1111
MSG_INCORRECT_NUM_ITER_VARS = "FMT:Have you used {num_vars} iterator variables in the {parent[ordinal]} {parent[typestr]}?"
1212
MSG_INSUFFICIENT_IFS = "FMT:Have you used {sol_len} ifs inside the {parent[ordinal]} {parent[typestr]}?"
1313

pythonwhat/test_funcs/test_function_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# TODO some need to reference the eval rather than str
2222
MSG_RES_ERROR = "FMT:Calling `{argstr}` should result in `{str_sol}`, instead got an error."
2323
MSG_RES_INCORRECT = "FMT:Calling `{argstr}` should result in `{str_sol}`, instead got `{str_stu}`."
24-
MSG_ERR_NONE = "FMT:Calling `{argstr}` doesn't result in an error, but it should!"
24+
MSG_ERR_NONE = "FMT:Calling `{argstr}` doesn't result in an error, but it should."
2525
MSG_ERR_INCORRECT = "FMT:Calling `{argstr}` should result in a `{str_sol.__class__.__name__}`, instead got a `{str_stu.__class__.__name__}`."
2626
MSG_OUT_ERROR = "FMT:Calling `{argstr}` should output {str_sol}, instead got an error."
2727
MSG_OUT_INCORRECT = "FMT:Calling `{argstr}` should output `{str_sol}`, instead got {str_stu}."

pythonwhat/test_funcs/test_lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
MSG_RES_ERROR = "FMT:Calling it with arguments `{argstr}` should result in `{str_sol}`, instead got an error."
1212
MSG_RES_INCORRECT = "FMT:Calling it with arguments `{argstr}` should result in `{str_sol}`, instead got `{str_stu}`."
13-
MSG_ERR_WRONG = "FMT:Calling it with arguments `{argstr}` doesn't result in an error, but it should!"
13+
MSG_ERR_WRONG = "FMT:Calling it with arguments `{argstr}` doesn't result in an error, but it should."
1414
def test_lambda_function(index,
1515
arg_names=True,
1616
arg_defaults=True,

tests/test_test_comp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_fail_3(self):
3939
self.data["DC_CODE"] = "[a + str(b) for a,b in x.items()]"
4040
sct_payload = helper.run(self.data)
4141
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.")
4343
helper.test_lines(self, sct_payload, 1, 1, 17, 19)
4444

4545
def test_fail_4(self):
@@ -334,7 +334,7 @@ def test_fail_3(self):
334334
self.data["DC_CODE"] = "{ a:a for a in lst }"
335335
sct_payload = helper.run(self.data)
336336
self.assertFalse(sct_payload['correct'])
337-
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'])
338338
helper.test_lines(self, sct_payload, 1, 1, 11, 11)
339339

340340
def test_fail_4(self):
@@ -419,7 +419,7 @@ def test_fail_3(self):
419419
self.data["DC_CODE"] = "(a + str(b) for a,b in x.items())"
420420
sct_payload = helper.run(self.data)
421421
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.")
423423
helper.test_lines(self, sct_payload, 1, 1, 17, 19)
424424

425425
def test_fail_4(self):

tests/test_test_function_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def inc(num):
464464
'''
465465
sct_payload = helper.run(self.data)
466466
self.assertFalse(sct_payload['correct'])
467-
self.assertEqual("Calling <code>inc(-1)</code> doesn't result in an error, but it should!", sct_payload['message'])
467+
self.assertEqual("Calling <code>inc(-1)</code> doesn't result in an error, but it should.", sct_payload['message'])
468468

469469
def test_fail_2(self):
470470
self.data["DC_CODE"] = '''

tests/test_test_lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_fail_8(self):
6868
self.data["DC_CODE"] = "echo_word = lambda word, echo = 1: word * int(echo)"
6969
sct_payload = helper.run(self.data)
7070
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.")
7272
helper.test_lines(self, sct_payload, 1, 1, 13, 51)
7373

7474
def test_pass(self):

0 commit comments

Comments
 (0)