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

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

Open
9 tasks
augustosalazar opened this issue Jul 30, 2024 · 0 comments
Open
9 tasks

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

augustosalazar opened this issue Jul 30, 2024 · 0 comments

Comments

@augustosalazar
Copy link
Member

augustosalazar commented Jul 30, 2024

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

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

No branches or pull requests

1 participant