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

test: improve NAF decomposition test coverage #617

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DeVikingMark
Copy link

Description:

Enhance TestNafDecomposition with comprehensive test cases:

  • Add test table with various input numbers
  • Add boundary cases (0, 1)
  • Add interesting cases requiring NAF conversion
  • Add property checks for NAF representation
  • Add reconstruction validation
  • Improve error messages with detailed information

This commit removes the TODO comment and provides proper test coverage for the NafDecomposition function, ensuring correct NAF properties and accurate number reconstruction.

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