Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit c9a0748

Browse files
committed
Better test checks
1 parent 2eb04ee commit c9a0748

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

.idea/study_project.xml

Lines changed: 7 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lesson3/task1/tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
def test_answer_placeholders():
55
placeholders = get_answer_placeholders()
6-
placeholder = placeholders[0]
7-
if placeholder in [0, 'SB123']:
6+
if placeholders[0] in ["0", "'SB123'", "\"SB123\""]:
87
passed()
98
else:
10-
failed()
9+
failed("Incorrect index")
1110

1211

1312
if __name__ == '__main__':

lesson3/task2/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def test_voltage():
55
task = import_task_file()
66
if task.board.m0._voltage == 0.5:
77
return passed()
8-
return failed("Voltage was not set to half")
8+
return failed("Voltage was not set to half speed forwards")
99

1010

1111
if __name__ == '__main__':

lesson4/task1/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def test_answer_placeholders():
66
if placeholders[0] in ["0", "\"SBABC\"", "'SBABC'"]:
77
passed()
88
else:
9-
failed()
9+
failed("Incorrect board index")
1010

1111

1212
if __name__ == '__main__':

0 commit comments

Comments
 (0)