зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-08-28 11:36:17 +03:00
11 строки
227 B
Rust
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"]);
|
|
}
|