mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-05-23 10:48:06 +00:00
Compare commits
3 commits
03e7c66372
...
2671c0fffe
Author | SHA1 | Date | |
---|---|---|---|
2671c0fffe | |||
0bf0086c66 | |||
05adb6b331 |
|
@ -364,7 +364,8 @@ mod tests {
|
|||
fn test_display() {
|
||||
gst::init().unwrap();
|
||||
|
||||
format!("{}", crate::AudioFormat::S16be);
|
||||
assert_eq!(format!("{}", crate::AudioFormat::S16be), "S16BE");
|
||||
assert_eq!(format!("{:?}", crate::AudioFormat::S16be), "S16be");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -480,18 +480,12 @@ mod tests {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "gst_video_format_to_string returned NULL")]
|
||||
fn enum_to_string_panics() {
|
||||
assert_eq!(&format!("{}", crate::VideoFormat::__Unknown(-1)), "UNKNOWN");
|
||||
assert_eq!(crate::VideoFormat::__Unknown(-1).to_str(), "UNKNOWN");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_display() {
|
||||
gst::init().unwrap();
|
||||
|
||||
format!("{}", crate::VideoFormat::Nv16);
|
||||
assert_eq!(format!("{}", crate::VideoFormat::Nv16), "NV16");
|
||||
assert_eq!(format!("{:?}", crate::VideoFormat::Nv16), "Nv16");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue