From ed15fda1031ca1ed4b1d687d180af3cbba15d130 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 3 Oct 2021 16:25:47 -0400 Subject: [PATCH] [+] Add tests --- assignments/a2/a2_example_tests.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/assignments/a2/a2_example_tests.py b/assignments/a2/a2_example_tests.py index 7954d47..d626ac7 100644 --- a/assignments/a2/a2_example_tests.py +++ b/assignments/a2/a2_example_tests.py @@ -256,23 +256,22 @@ def test_course_compatible() -> None: """ Test is_course_compatible with compatible course """ - # TODO: Create a test + assert a2_courses.is_course_compatible(SCHEDULE_1, CON123) def test_course_not_compatible() -> None: """ Test is_course_compatible with incompatible course """ - # TODO: Create a test + assert not a2_courses.is_course_compatible(SCHEDULE_1, TMP000) + assert not a2_courses.is_course_compatible(SCHEDULE_1, CON333) def test_compatible_sections() -> None: """ Test compatible_sections with compatible sections """ - actual = a2_courses.compatible_sections(SCHEDULE_1, CON123) == {CON123_LEC0123} - expected = True - assert actual == expected + assert a2_courses.compatible_sections(SCHEDULE_1, CON123) == {CON123_LEC0123} # TODO: Create more tests