aboutsummaryrefslogtreecommitdiffstats
path: root/src/tui
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/buffer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tui/buffer.rs b/src/tui/buffer.rs
index 38307980..8bc49316 100644
--- a/src/tui/buffer.rs
+++ b/src/tui/buffer.rs
@@ -480,6 +480,7 @@ mod tests {
}
#[test]
+ #[cfg(debug_assertions)]
#[should_panic(expected = "outside the buffer")]
fn pos_of_panics_on_out_of_bounds() {
let rect = Rect::new(0, 0, 10, 10);
@@ -490,6 +491,7 @@ mod tests {
}
#[test]
+ #[cfg(debug_assertions)]
#[should_panic(expected = "outside the buffer")]
fn index_of_panics_on_out_of_bounds() {
let rect = Rect::new(0, 0, 10, 10);