mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 00:03:49 +01:00
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`
This commit is contained in:
parent
f3bc646f24
commit
b80f91c6a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user