From 883a7a20e06f1219e97acd11e0230fa091a6291d Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 3 Oct 2021 15:55:10 -0400 Subject: [PATCH] [+] Add tests --- assignments/a2/a2_example_tests.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/assignments/a2/a2_example_tests.py b/assignments/a2/a2_example_tests.py index 376da2c..5ddd185 100644 --- a/assignments/a2/a2_example_tests.py +++ b/assignments/a2/a2_example_tests.py @@ -190,36 +190,28 @@ def test_2_possible_schedule_combinations() -> None: """ Test possible_schedule_combinations with 2 possible combinations """ - c1 = MAT137 - c2 = CSC111 - expected = 2 - actual = a2_courses.possible_schedules(c1, c2) - assert len(actual) == expected + assert len(a2_courses.possible_schedules(MAT137, CSC111)) == 2 def test_4_possible_schedule_combinations() -> None: """ Test possible_schedule_combinations with 4 possible combinations """ - # TODO: Create a test + assert len(a2_courses.possible_schedules(MAT137, CON333)) == 4 def test_1_valid_schedule_combinations() -> None: """ Test valid_schedule_combinations with valid schedule combination, bounds of 1 """ - c1 = MAT137 - c2 = CSC111 - expected = 1 - actual = a2_courses.valid_schedules(c1, c2) - assert len(actual) == expected + assert len(a2_courses.valid_schedules(MAT137, CSC111)) == 1 def test_4_valid_schedule_combinations() -> None: """ Test valid_schedule_combinations with 4 valid schedule combinations """ - # TODO: Create a test + assert len(a2_courses.valid_schedules(CON123, CON333)) == 4 def test_possible_five_course_schedules() -> None: