Skip to content

[TASK] Add More Test Cases for Conversion Functions #3

@augustosalazar

Description

@augustosalazar

Descripción de la Tarea

We need to expand our test coverage for the ieee754 and binary_to_decimal functions to ensure their robustness. The following tasks are proposed:

Pasos a Seguir

  1. Test cases for ieee754 function:

    • Validate the conversion of edge cases like +0, -0, +inf, -inf, and NaN.
    • Add test cases for various normal and subnormal numbers.
    • Ensure that rounding errors are within acceptable limits.
  2. Test cases for binary_to_decimal function:

    • Add test cases for integer binary strings of varying lengths.
    • Validate the conversion of floating-point binary strings.
    • Ensure correct handling of edge cases like 0, 1, and long sequences of 1s and 0s.
  • Add test case for +0 in ieee754.
  • Add test case for -0 in ieee754.
  • Add test case for +inf in ieee754.
  • Add test case for -inf in ieee754.
  • Add test case for NaN in ieee754.
  • Add normal and subnormal numbers test cases in ieee754.
  • Add long integer binary string test cases in binary_to_decimal.
  • Add floating-point binary string test cases in binary_to_decimal.
  • Ensure edge cases are handled correctly in binary_to_decimal.

Información Adicional

Current test:
https://github.com/proyectosingenieriauninorte/NumericalMethods/tree/main/marlonpy/tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions