diff options
| author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-02-28 00:31:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 16:31:27 +0000 |
| commit | b80f91c6a2991708f2a5bf48a20809f80f95e7c3 (patch) | |
| tree | 8713acb4bc46dbabfc204b7c74a55d389e30b709 /src/tui/buffer.rs | |
| parent | [docs] fix some links between config and commands (#733) (diff) | |
| download | atuin-b80f91c6a2991708f2a5bf48a20809f80f95e7c3.zip | |
Disable 2 tests that shouldn't run in release mode (#736)
These tests expect `debug_assert!` to panic:
- `pos_of_panics_on_out_of_bounds`
- `index_of_panics_on_out_of_bounds`
Diffstat (limited to 'src/tui/buffer.rs')
| -rw-r--r-- | src/tui/buffer.rs | 2 |
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); |
