alf_tui 0.5.0

A smolderingly-nimble Rust TUI to rediscover your custom shell.
Documentation
use super::*;

#[test]
fn test_cycle_panel_forward_three_times_returns_to_list() {
   let mut app = make_app();
   app.cycle_panel();
   app.cycle_panel();
   app.cycle_panel();
   assert_eq!(app.active_panel(), Panel::List);
}

#[test]
fn test_cycle_panel_backward_three_times_returns_to_list() {
   let mut app = make_app();
   app.cycle_panel_backward();
   app.cycle_panel_backward();
   app.cycle_panel_backward();
   assert_eq!(app.active_panel(), Panel::List);
}

#[test]
fn test_cycle_panel_forward_sequence() {
   let mut app = make_app();
   assert_eq!(app.active_panel(), Panel::List);
   app.cycle_panel();
   assert_eq!(app.active_panel(), Panel::Description);
   app.cycle_panel();
   assert_eq!(app.active_panel(), Panel::Script);
}