la-stack 0.4.5

Fast, stack-allocated linear algebra for fixed dimensions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![forbid(unsafe_code)]

use proptest::test_runner::Config as ProptestConfig;

/// Preserve a suite-specific local default while honoring `PROPTEST_CASES`.
pub(crate) fn with_default_cases(default_cases: u32) -> ProptestConfig {
    let config = ProptestConfig::default();
    if std::env::var_os("PROPTEST_CASES").is_some() {
        config
    } else {
        ProptestConfig {
            cases: default_cases,
            ..config
        }
    }
}