mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-05-23 10:48:06 +00:00
Compare commits
2 commits
14df7bd20f
...
0bf0086c66
Author | SHA1 | Date | |
---|---|---|---|
0bf0086c66 | |||
05adb6b331 |
|
@ -364,7 +364,8 @@ mod tests {
|
||||||
fn test_display() {
|
fn test_display() {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
|
|
||||||
format!("{}", crate::AudioFormat::S16be);
|
assert_eq!(format!("{}", crate::AudioFormat::S16be), "S16BE");
|
||||||
|
assert_eq!(format!("{:?}", crate::AudioFormat::S16be), "S16be");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[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]
|
#[test]
|
||||||
fn test_display() {
|
fn test_display() {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
|
|
||||||
format!("{}", crate::VideoFormat::Nv16);
|
assert_eq!(format!("{}", crate::VideoFormat::Nv16), "NV16");
|
||||||
|
assert_eq!(format!("{:?}", crate::VideoFormat::Nv16), "Nv16");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue