diff options
| author | Steven Fackler <[email protected]> | 2016-08-07 17:52:13 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-08-07 17:52:13 -0700 |
| commit | 6091c674c99fb80baef79647d8e131064a4887a0 (patch) | |
| tree | 212892dc862fec8456f5078ee27d7e8d14a3faf6 /openssl/src | |
| parent | Take a c_ulong directly in BN construction (diff) | |
| download | rust-openssl-6091c674c99fb80baef79647d8e131064a4887a0.tar.xz rust-openssl-6091c674c99fb80baef79647d8e131064a4887a0.zip | |
Fix bn tests on 32 bit
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/bn/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/bn/mod.rs b/openssl/src/bn/mod.rs index 254e674e..a933157c 100644 --- a/openssl/src/bn/mod.rs +++ b/openssl/src/bn/mod.rs @@ -1006,7 +1006,7 @@ mod tests { #[test] fn test_to_from_slice() { - let v0 = BigNum::new_from(10203004_u64).unwrap(); + let v0 = BigNum::new_from(10203004).unwrap(); let vec = v0.to_vec(); let v1 = BigNum::new_from_slice(&vec).unwrap(); @@ -1015,7 +1015,7 @@ mod tests { #[test] fn test_negation() { - let a = BigNum::new_from(909829283_u64).unwrap(); + let a = BigNum::new_from(909829283).unwrap(); assert!(!a.is_negative()); assert!((-a).is_negative()); @@ -1024,7 +1024,7 @@ mod tests { #[test] fn test_prime_numbers() { - let a = BigNum::new_from(19029017_u64).unwrap(); + let a = BigNum::new_from(19029017).unwrap(); let p = BigNum::checked_generate_prime(128, true, None, Some(&a)).unwrap(); assert!(p.is_prime(100).unwrap()); |