9d675c9c33
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VdfEGXA7aJ6ftMsCc9PJze
23 lines
770 B
Rust
23 lines
770 B
Rust
//! `Incremental` over a live source against `Eager` over random formula and cell edits.
|
|
//! Evidence: `context/test-evidence/improvise-incremental.md`.
|
|
|
|
mod support;
|
|
|
|
use improvise_incremental::differential_in;
|
|
use proptest::prelude::*;
|
|
use support::live::Fed;
|
|
use support::{any_formula_edit, formula_workbook};
|
|
|
|
proptest! {
|
|
#[test]
|
|
fn a_live_source_matches_eager_over_random_formula_and_cell_edits(
|
|
edits in prop::collection::vec(any_formula_edit(), 0..3),
|
|
) {
|
|
let wb = formula_workbook();
|
|
let none = vec!["Region".to_string()];
|
|
let candidate = Fed::new(&wb.model, none.clone());
|
|
let ran = differential_in(&wb.model, &[], &none, candidate, &edits);
|
|
prop_assert!(ran.is_ok(), "{}", ran.unwrap_err());
|
|
}
|
|
}
|