Skip to content

Commit c2aa35c

Browse files
committed
update unit tests with exclamations
1 parent 9364b9a commit c2aa35c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

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)