Skip to content

Commit ed30ab3

Browse files
Merge pull request #398 from datacamp/support/typo
[LO-1086] fix: typo on highlighted word
2 parents 91ed457 + 0ad5fea commit ed30ab3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pythonwhat/checks/has_funcs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ def parse_tree(tree):
203203

204204

205205
DEFAULT_INCORRECT_MSG = "Expected {{test_desc}}`{{sol_eval}}`, but got `{{stu_eval}}`."
206-
DEFAULT_ERROR_MSG = "Running {{'it' if parent['part'] else 'the higlighted expression'}} generated an error: `{{stu_str}}`."
207-
DEFAULT_ERROR_MSG_INV = "Running {{'it' if parent['part'] else 'the higlighted expression'}} didn't generate an error, but it should!"
208-
DEFAULT_UNDEFINED_NAME_MSG = "Running {{'it' if parent['part'] else 'the higlighted expression'}} should define a variable `{{name}}` without errors, but it doesn't."
206+
DEFAULT_ERROR_MSG = "Running {{'it' if parent['part'] else 'the highlighted expression'}} generated an error: `{{stu_str}}`."
207+
DEFAULT_ERROR_MSG_INV = "Running {{'it' if parent['part'] else 'the highlighted expression'}} didn't generate an error, but it should!"
208+
DEFAULT_UNDEFINED_NAME_MSG = "Running {{'it' if parent['part'] else 'the highlighted expression'}} should define a variable `{{name}}` without errors, but it doesn't."
209209
DEFAULT_INCORRECT_NAME_MSG = (
210210
"Are you sure you assigned the correct value to `{{name}}`?"
211211
)

tests/test_messaging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,11 @@ def test(a, b):
501501
print(a + b)
502502
return a + b
503503
""",
504-
"Check the definition of `test()`. To verify it, we reran `test(3, 1)`. Running the higlighted expression generated an error: `wrong`.",
504+
"Check the definition of `test()`. To verify it, we reran `test(3, 1)`. Running the highlighted expression generated an error: `wrong`.",
505505
),
506506
(
507507
"def test(a, b): print(int(a) + int(b)); return int(a) + int(b)",
508-
'Check the definition of `test()`. To verify it, we reran `test(1, "2")`. Running the higlighted expression didn\'t generate an error, but it should!',
508+
'Check the definition of `test()`. To verify it, we reran `test(1, "2")`. Running the highlighted expression didn\'t generate an error, but it should!',
509509
),
510510
],
511511
)

0 commit comments

Comments
 (0)