aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/tests
diff options
context:
space:
mode:
authorA-Walrus2022-10-26 03:00:13 +0000
committerGitHub2022-10-26 03:00:13 +0000
commitc4d7cde6c8d7f5ca3a9cabd50bdfbda9c3f7bb15 (patch)
tree0214dc4270da56e5c50fc009e72ae35c4aaf8bf6 /helix-tui/tests
parentac0fe29867012ba0840ee7c8893b41d976d5ab38 (diff)
Allow the area to be bigger than u16 (width and height remain u16) (#4318)
Now the editor can fill **very** large terminals. Changed/removed tests which check the truncating behaviour.
Diffstat (limited to 'helix-tui/tests')
-rw-r--r--helix-tui/tests/terminal.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-tui/tests/terminal.rs b/helix-tui/tests/terminal.rs
index 3dd3b0b0..2824c9f2 100644
--- a/helix-tui/tests/terminal.rs
+++ b/helix-tui/tests/terminal.rs
@@ -4,12 +4,12 @@ use helix_tui::{
};
#[test]
-fn terminal_buffer_size_should_be_limited() {
+fn terminal_buffer_size_should_not_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);
+ assert_eq!(size.width, 400);
+ assert_eq!(size.height, 400);
}
// #[test]