diff --git a/gstreamer-audio/src/audio_format.rs b/gstreamer-audio/src/audio_format.rs index eb7e337a2..1c5578e09 100644 --- a/gstreamer-audio/src/audio_format.rs +++ b/gstreamer-audio/src/audio_format.rs @@ -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] diff --git a/gstreamer-video/src/video_format.rs b/gstreamer-video/src/video_format.rs index 41aa75889..36828ca16 100644 --- a/gstreamer-video/src/video_format.rs +++ b/gstreamer-video/src/video_format.rs @@ -484,7 +484,8 @@ mod tests { 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]