uint icon indicating copy to clipboard operation
uint copied to clipboard

`algorithms/gcd/mod`: Increase cases when perf is better.

Open github-actions[bot] opened this issue 2 years ago • 0 comments

On 2022-06-11 @recmo wrote in ac23d9d “Merge pull request #140 from recmo/test-time”:

Increase cases when perf is better.

    #[test]
    fn test_gcd_extended() {
        const_for!(BITS in SIZES {
            const LIMBS: usize = nlimbs(BITS);
            type U = Uint<BITS, LIMBS>;
            // TODO: Increase cases when perf is better.
            let mut config = Config::default();
            config.cases = min(config.cases, if BITS > 500 { 3 } else { 10 });
            proptest!(config, |(a: U, b: U)| {
                let (g, x, y, sign) = gcd_extended(a, b);
                assert_eq!(g, gcd_ref(a, b));

From src/algorithms/gcd/mod.rs:236

github-actions[bot] avatar Jun 11 '22 16:06 github-actions[bot]