alf_tui 0.5.0

A smolderingly-nimble Rust TUI to rediscover your custom shell.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

#[test]
fn test_selected_entry_returns_first_visible_by_default() {
   let app = make_app();
   assert_eq!(app.selected_entry().unwrap().name, "alpha");
}

#[test]
fn test_selected_entry_returns_none_when_empty() {
   let app = make_empty_app();
   assert!(app.selected_entry().is_none());
}