Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add More Test Cases for Edge Cases in Number Operations #106

Copy link
Copy link

Description

@Imran-imtiaz48
Issue body actions

The current test_numbers.py file provides comprehensive coverage for standard operations and type checks for integers, booleans, floats, and complex numbers. However, it would be beneficial to add more test cases that cover edge cases and unusual scenarios. For example:

  • Division by zero and its handling (e.g., 1 / 0 raises ZeroDivisionError).
  • Very large and very small floating-point numbers (e.g., underflow/overflow).
  • Operations involving NaN and infinity in floats.
  • Complex number operations with zero imaginary or real parts.
  • Boolean operations with non-boolean operands.

Adding these tests will help ensure robustness and correctness when handling special cases in numerical computations.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.