Skip to content

Added a unittest and changed the filename to a valid format #180

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NiloySaha84
Copy link

Added Unit Tests and Renamed Module for Import Compatibility

What was added
• Created a test_basics.py file using Python’s built-in unittest framework.
• Added unit tests for:
• cuber() function — to validate cube calculation and default behavior.
• solve_triangle() function — to verify correct area and perimeter output.

These tests improve code reliability, enable automated testing, and make the project more maintainable and contribution-friendly.

Why the filename was changed

The original file name (Python in 90 minutes.py) contained spaces, which are not valid in Python module names. This caused errors when trying to import functions for testing.

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.

1 participant