use crate::tui::app::input::should_restore_cancelled_query;
#[test]
fn restores_only_when_agent_produced_nothing() {
assert!(should_restore_cancelled_query(false, false, false, false));
}
#[test]
fn keeps_transcript_when_anything_was_produced() {
assert!(!should_restore_cancelled_query(true, false, false, false)); assert!(!should_restore_cancelled_query(false, true, false, false)); assert!(!should_restore_cancelled_query(false, false, true, false)); assert!(!should_restore_cancelled_query(false, false, false, true)); assert!(!should_restore_cancelled_query(true, true, true, true));
}