-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tests): update field addition and subtraction tests to use r…
…andom BigInt values - Changed the field tests to utilize random number generation for inputs, enhancing robustness against edge cases. - Updated the limb size and number of limbs from 20 to 16 for consistency. - Replaced the hardcoded values for the scalar field modulus with the BaseField's modulus. - Added assertions to ensure non-negativity and proper range for generated values. - Improved correctness checks by directly comparing results with expected values derived from Arkworks operations.
- Loading branch information
Showing
2 changed files
with
86 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters