mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
Update ffprobe_media_tests.rs
This commit is contained in:
@@ -7,6 +7,11 @@ use std::io::Read;
|
|||||||
|
|
||||||
use bwavfile::WaveReader;
|
use bwavfile::WaveReader;
|
||||||
|
|
||||||
|
// Media Tests
|
||||||
|
//
|
||||||
|
// These tests compare metadata and format data read by ffprobe with the same values
|
||||||
|
// as read by `WaveReader`.
|
||||||
|
|
||||||
// This seems rickety but we're going with it
|
// This seems rickety but we're going with it
|
||||||
fn assert_match_stream<T>(stream_key: &str,
|
fn assert_match_stream<T>(stream_key: &str,
|
||||||
other: impl Fn(&mut WaveReader<File>) -> T)
|
other: impl Fn(&mut WaveReader<File>) -> T)
|
||||||
@@ -47,4 +52,4 @@ fn test_sample_rate() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_channel_count() {
|
fn test_channel_count() {
|
||||||
assert_match_stream("channels", |w| w.format().unwrap().channel_count );
|
assert_match_stream("channels", |w| w.format().unwrap().channel_count );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user