Skip to content

✅ test: Document Uint256.dividedBy handles large divisors correctly#267

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-108-uint256-divide
Jan 4, 2026
Merged

✅ test: Document Uint256.dividedBy handles large divisors correctly#267
roninjin10 merged 1 commit intomainfrom
fix/issue-108-uint256-divide

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • MAX / (MAX-1) = 1
  • MAX / (2^255) = 1
  • Large / large with non-trivial quotient

🤖 Generated with Claude Code

Closes #108. Verified implementation is correct - uses native bigint
division which handles arbitrary precision. Added 9 tests documenting
behavior with large divisors (near-MAX, 2^255, etc).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dist Error Error Jan 4, 2026 8:44am
voltaire Error Error Jan 4, 2026 8:44am

Copy link
Contributor Author

@roninjin10 roninjin10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review summary for PR #267 — ✅ test: Document Uint256.dividedBy handles large divisors correctly\n\nTouched areas: Uint | Files changed: 1 (+56/-0)\n\n- Tests: yes\n- Types & API: yes\n- Docs: ensure behavior is documented where user-facing.\n- Performance: consider micro-allocations in tight loops.\n\nOutcome: Comment-only review; no blocking issues spotted. Please consider the above suggestions.\n

@roninjin10 roninjin10 merged commit 99cf21c into main Jan 4, 2026
20 of 49 checks passed
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.

Bug: Uint256.dividedBy returns wrong result for large divisors

1 participant