Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test_course.py to add tests for zero students #654

Merged
merged 5 commits into from
Nov 29, 2024

Conversation

YourLocalMedic
Copy link
Contributor

added tests for course.contains() and course.remove() where there are zero students in the course

added tests for contains and remove where there are zero students in the course
fixed a typo

CS161 -> CS101
Copy link
Collaborator

@twentylemon twentylemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests in this file are grouped by the list cardinality. Empty list tests are at the top of the file; where there is already a test for removing from the empty list.

Please move the contains test to be with the other empty list tests, and remove the duplicate test.

Removed redundant test for remove, and moved the contains test to be properly grouped by course cardinality. Also changed the name of the test to match the naming convention
Copy link
Collaborator

@twentylemon twentylemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; good eye finding this missed test case! Looks to be some broken formatting leftover, but the test case itself looks good to me.

Copy link
Collaborator

@twentylemon twentylemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jameshughes89 jameshughes89 merged commit ffa0d98 into jameshughes89:main Nov 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants