mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
video/video_format: Expect a specific panic reason
This commit is contained in:
parent
a6d5f6f5a5
commit
110bfce7e6
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic]
|
#[should_panic(expected = "gst_video_format_to_string returned NULL")]
|
||||||
fn enum_to_string_panics() {
|
fn enum_to_string_panics() {
|
||||||
assert_eq!(&format!("{}", crate::VideoFormat::__Unknown(-1)), "UNKNOWN");
|
assert_eq!(&format!("{}", crate::VideoFormat::__Unknown(-1)), "UNKNOWN");
|
||||||
assert_eq!(crate::VideoFormat::__Unknown(-1).to_str(), "UNKNOWN");
|
assert_eq!(crate::VideoFormat::__Unknown(-1).to_str(), "UNKNOWN");
|
||||||
|
|
Loading…
Reference in a new issue