mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-19 00:17:28 +02: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]
|
#[test]
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
#[should_panic(expected = "outside the buffer")]
|
#[should_panic(expected = "outside the buffer")]
|
||||||
fn pos_of_panics_on_out_of_bounds() {
|
fn pos_of_panics_on_out_of_bounds() {
|
||||||
let rect = Rect::new(0, 0, 10, 10);
|
let rect = Rect::new(0, 0, 10, 10);
|
||||||
@ -490,6 +491,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
#[should_panic(expected = "outside the buffer")]
|
#[should_panic(expected = "outside the buffer")]
|
||||||
fn index_of_panics_on_out_of_bounds() {
|
fn index_of_panics_on_out_of_bounds() {
|
||||||
let rect = Rect::new(0, 0, 10, 10);
|
let rect = Rect::new(0, 0, 10, 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user