From 3a92f7c8997e1e244acb5e458b942c5a0d83f444 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 19 Nov 2019 18:19:27 +0100 Subject: [PATCH] Remove tests failing in release mode --- alacritty_terminal/src/grid/storage.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs index 1a6d9913..0161daff 100644 --- a/alacritty_terminal/src/grid/storage.rs +++ b/alacritty_terminal/src/grid/storage.rs @@ -366,14 +366,6 @@ mod test { assert_eq!(storage[2], Row::new(Column(1), &'0')); } - #[test] - #[should_panic] - fn indexing_above_len() { - let mut storage = Storage::with_capacity(Line(3), Row::new(Column(0), &' ')); - storage.shrink_lines(2); - let _ = &storage[1]; - } - #[test] #[should_panic] fn indexing_above_inner_len() { @@ -392,13 +384,6 @@ mod test { assert_eq!(storage.zero, 2); } - #[test] - #[should_panic] - fn rotate_overflow() { - let mut storage = Storage::with_capacity(Line(3), Row::new(Column(0), &' ')); - storage.rotate(4); - } - /// Grow the buffer one line at the end of the buffer /// /// Before: