mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-26 22:50:47 +00:00
13 lines
338 B
Rust
13 lines
338 B
Rust
use tui::{
|
|
backend::{Backend, TestBackend},
|
|
Terminal,
|
|
};
|
|
|
|
#[test]
|
|
fn terminal_buffer_size_should_be_limited() {
|
|
let backend = TestBackend::new(400, 400);
|
|
let terminal = Terminal::new(backend).unwrap();
|
|
let size = terminal.backend().size().unwrap();
|
|
assert_eq!(size.width, 255);
|
|
assert_eq!(size.height, 255);
|
|
}
|