diff --git a/dev/src/uu_factor/miller_rabin.rs.html b/dev/src/uu_factor/miller_rabin.rs.html index 2afa0692c..ef1c68a9c 100644 --- a/dev/src/uu_factor/miller_rabin.rs.html +++ b/dev/src/uu_factor/miller_rabin.rs.html @@ -207,6 +207,23 @@ 207 208 209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226
// * This file is part of the uutils coreutils package.
// *
// * (c) 2020 nicoo <nicoo@debian.org>
@@ -321,7 +338,6 @@
mod tests {
use super::*;
use crate::numeric::{traits::DoubleInt, Arithmetic, Montgomery};
- use crate::parametrized_check;
use quickcheck::quickcheck;
use std::iter;
const LARGEST_U64_PRIME: u64 = 0xFFFFFFFFFFFFFFC5;
@@ -366,7 +382,16 @@
);
}
}
- parametrized_check!(first_primes);
+
+ #[test]
+ fn first_primes_u32() {
+ first_primes::<u32>();
+ }
+
+ #[test]
+ fn first_primes_u64() {
+ first_primes::<u64>();
+ }
#[test]
fn one() {
@@ -404,7 +429,16 @@
}
}
}
- parametrized_check!(small_semiprimes);
+
+ #[test]
+ fn small_semiprimes_u32() {
+ small_semiprimes::<u32>();
+ }
+
+ #[test]
+ fn small_semiprimes_u64() {
+ small_semiprimes::<u64>();
+ }
quickcheck! {
fn composites(i: u64, j: u64) -> bool {
diff --git a/dev/src/uu_factor/numeric/modular_inverse.rs.html b/dev/src/uu_factor/numeric/modular_inverse.rs.html
index 9250e7b4a..44cb08a24 100644
--- a/dev/src/uu_factor/numeric/modular_inverse.rs.html
+++ b/dev/src/uu_factor/numeric/modular_inverse.rs.html
@@ -77,6 +77,14 @@
77
78
79
+80
+81
+82
+83
+84
+85
+86
+87
// * This file is part of the uutils coreutils package.
// *
// * (c) 2015 Wiktor Kuropatwa <wiktor.kuropatwa@gmail.com>
@@ -125,7 +133,6 @@
#[cfg(test)]
mod tests {
use super::{super::traits::Int, *};
- use crate::parametrized_check;
use quickcheck::quickcheck;
fn small_values<T: Int>() {
@@ -138,7 +145,16 @@
assert!(test_values.all(|x| x.wrapping_mul(&modular_inverse(x)) == one));
}
- parametrized_check!(small_values);
+
+ #[test]
+ fn small_values_u32() {
+ small_values::<u32>();
+ }
+
+ #[test]
+ fn small_values_u64() {
+ small_values::<u64>();
+ }
quickcheck! {
fn random_values_u32(n: u32) -> bool {
diff --git a/dev/src/uu_factor/numeric/montgomery.rs.html b/dev/src/uu_factor/numeric/montgomery.rs.html
index 76f7c0f31..b60f3477c 100644
--- a/dev/src/uu_factor/numeric/montgomery.rs.html
+++ b/dev/src/uu_factor/numeric/montgomery.rs.html
@@ -227,6 +227,31 @@
227
228
229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
// * This file is part of the uutils coreutils package.
// *
// * (c) 2020 Alex Lyon <arcterus@mail.com>
@@ -411,8 +436,6 @@
#[cfg(test)]
mod tests {
use super::*;
- use crate::parametrized_check;
-
fn test_add<A: DoubleInt>() {
for n in 0..100 {
let n = 2 * n + 1;
@@ -427,7 +450,16 @@
}
}
}
- parametrized_check!(test_add);
+
+ #[test]
+ fn add_u32() {
+ test_add::<u32>();
+ }
+
+ #[test]
+ fn add_u64() {
+ test_add::<u64>();
+ }
fn test_multiplication<A: DoubleInt>() {
for n in 0..100 {
@@ -442,7 +474,16 @@
}
}
}
- parametrized_check!(test_multiplication);
+
+ #[test]
+ fn multiplication_u32() {
+ test_multiplication::<u32>();
+ }
+
+ #[test]
+ fn multiplication_u64() {
+ test_multiplication::<u64>();
+ }
fn test_roundtrip<A: DoubleInt>() {
for n in 0..100 {
@@ -454,7 +495,16 @@
}
}
}
- parametrized_check!(test_roundtrip);
+
+ #[test]
+ fn roundtrip_u32() {
+ test_roundtrip::<u32>();
+ }
+
+ #[test]
+ fn roundtrip_u64() {
+ test_roundtrip::<u64>();
+ }
}