()
| 99 | |
| 100 | #[test] |
| 101 | fn test_app_quit_state() { |
| 102 | let mut app = InteractiveApp::new(); |
| 103 | app.state.should_quit = true; |
| 104 | |
| 105 | let backend = TestBackend::new(20, 20); |
| 106 | let mut terminal = Terminal::new(backend).unwrap(); |
| 107 | |
| 108 | let result = app.run(&mut terminal); |
| 109 | assert!(result.is_ok()); |
| 110 | } |
| 111 | |
| 112 | #[test] |
| 113 | fn test_state_initialization() { |