Skip to content

Conversation

@forfudan
Copy link
Owner

This PR refactors the testing files for BigInt and BigUInt

  • Refactored BigInt arithmetic tests (tests/bigint/test_bigint_arithmetics.mojo) to use a data-driven approach by loading test cases from TOML files, significantly reducing code duplication and improving maintainability.
  • Added support for unary test cases in the load_test_cases function (src/decimojo/tests. Mojo) with a new unary parameter to differentiate between single and multi-operand tests.
  • Add tests for BigUInt which first generate very big (>20000 digits) integers, floor divide them using both DeciMojo and Python's int type, and compare them.

@forfudan forfudan merged commit 79df4ae into main Jul 11, 2025
1 check passed
@forfudan forfudan deleted the work branch July 11, 2025 18:33
forfudan added a commit that referenced this pull request Jul 11, 2025
forfudan added a commit that referenced this pull request Jul 14, 2025
forfudan added a commit that referenced this pull request Jul 15, 2025
forfudan added a commit that referenced this pull request Jul 18, 2025
forfudan added a commit that referenced this pull request Jul 24, 2025
forfudan added a commit that referenced this pull request Jul 26, 2025
forfudan added a commit that referenced this pull request Jul 31, 2025
forfudan added a commit that referenced this pull request Aug 3, 2025
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.

2 participants