1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-08-28 11:36:17 +03:00
Files
tui-textarea/tests/history.rs
2022-10-04 17:58:18 +09:00

11 строки
227 B
Rust

use tui_textarea::TextArea;
// Regression test for #4
#[test]
fn disable_history() {
let mut t = TextArea::default();
t.set_max_histories(0);
assert!(t.insert_str("hello"));
assert_eq!(t.lines(), ["hello"]);
}