-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test untested functions and traits of
Felt
(#858)
* Test num_traits::One implementation for Felt * Test the additive identity of num_traits::Zero implementation of Felt a + 0 = a ∀ a 1 + 0 = a ∀ a * Use proptest for `zero_additive_identity` and `one_multiplicative_identity` * Minor refactoring: formating and uncessary arguments for tests * Test `num_traits::Signed` implementation for `Felt` - non_zero_felt_is_always_positive - felt_is_never_negative - non_zero_felt_signum_is_always_one - signum_of_zero_is_zero - sub_abs - abs * Test sqrt, modpow, Add, AddAssign, Add<u32>, SubAssign for `Felt` * Test: Neg, Sub<u32>, Sub<usize>, from_i64, to_i64 for `Felt` * Test gcd, divides, is_even, is_odd, Shl for `Felt` We discoverd and fixed a bug in divides implementation * Run clippy, remove useless comments and new lines
- Loading branch information
1 parent
1de3e2b
commit 91bd6b0
Showing
2 changed files
with
268 additions
and
14 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