зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-08-28 11:36:17 +03:00
add regression test case for #4
Этот коммит содержится в:
10
tests/history.rs
Обычный файл
10
tests/history.rs
Обычный файл
@@ -0,0 +1,10 @@
|
||||
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"]);
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
mod cursor;
|
||||
mod history;
|
||||
|
||||
Ссылка в новой задаче
Block a user