forked from mirrors/gstreamer-rs
audio: video: Improve Display trait impl test for AudioFormat and Video a bit
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1432>
This commit is contained in:
parent
5c8a989029
commit
241338f43c
2 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||||
|
|
|
@ -484,7 +484,8 @@ mod tests {
|
||||||
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