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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue