use strafe_testing::{
proptest::prelude::*,
proptest_ext::{stat_w64, strafe_default_proptest_options},
};
use super::tests::*;
proptest! {
#![proptest_config(ProptestConfig {
..strafe_default_proptest_options()
})]
#[test]
fn linear_regression_test(
seed in 0..std::u16::MAX,
num_features in stat_w64(Some(1.0), Some(8.0), None),
num_rows in stat_w64(Some(12.0), Some(50.0), None),
fuzz_amount in stat_w64(None, Some(100.0), None),
) {
linear_regression_test_inner(seed, num_features, num_rows, fuzz_amount);
}
#[test]
fn generalized_linear_regression_test(
seed in 0..std::u16::MAX,
num_features in stat_w64(Some(1.0), Some(4.0), None),
num_rows in stat_w64(Some(12.0), Some(40.0), None),
fuzz_amount in stat_w64(None, Some(100.0), None),
) {
generalized_linear_regression_test_inner(seed, num_features, num_rows, fuzz_amount);
}
}