Bring the whole workspace into compliance with the repo's rustfmt config (edition 2024, max_width 100, use_small_heuristics = "Max"), which had drifted across many crates. Pure formatting — no logic changes; `cargo fmt --check` is now clean and `cargo build --workspace` is green.
15 lines
529 B
Rust
15 lines
529 B
Rust
use lawsynth_differentiate::{DerivativeConfig, DerivativeMethod};
|
|
|
|
#[test]
|
|
fn default_configuration_selects_the_unparameterized_finite_method() {
|
|
assert_eq!(DerivativeConfig::default().method, DerivativeMethod::FiniteDifference);
|
|
}
|
|
|
|
#[test]
|
|
fn configured_method_parameters_are_preserved_exactly() {
|
|
let config = DerivativeConfig {
|
|
method: DerivativeMethod::TotalVariation { lambda: 0.25, iterations: 64 },
|
|
};
|
|
assert_eq!(config.method, DerivativeMethod::TotalVariation { lambda: 0.25, iterations: 64 });
|
|
}
|