diff --git a/inquire/src/prompts/dateselect/test.rs b/inquire/src/prompts/dateselect/test.rs index f5336a22..76d1d15c 100644 --- a/inquire/src/prompts/dateselect/test.rs +++ b/inquire/src/prompts/dateselect/test.rs @@ -60,26 +60,3 @@ fn closure_validator() { assert_eq!(today_date.pred_opt().unwrap(), ans); } - -#[test] -/// Tests the behaviour of several keybindings in a admittedly naive way. -fn naive_keybinding_checks() { - let mut backend = fake_backend(vec![Key::Enter, Key::Left(KeyModifiers::NONE), Key::Enter]); - - let today_date = get_current_date(); - - let validator = move |d| { - if today_date > d { - Ok(Validation::Valid) - } else { - Ok(Validation::Invalid("Date must be in the past".into())) - } - }; - - let ans = DateSelect::new("Question") - .with_validator(validator) - .prompt_with_backend(&mut backend) - .unwrap(); - - assert_eq!(today_date.pred_opt().unwrap(), ans); -}