Skip to content

Commit 082f212

Browse files
committed
fix test
1 parent 12c3aba commit 082f212

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wav_output.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,20 @@ pub fn wav_to_writer(
9292

9393
#[cfg(test)]
9494
mod test {
95-
use super::output_to_wav;
95+
use super::wav_to_file;
9696
use crate::Source;
9797
use std::io::BufReader;
9898
use std::time::Duration;
9999

100100
#[test]
101-
fn test_output_to_wav() {
101+
fn test_wav_to_file() {
102102
let make_source = || {
103103
crate::source::SineWave::new(745.0)
104104
.amplify(0.1)
105105
.take_duration(Duration::from_secs(1))
106106
};
107107
let wav_file_path = "target/tmp/save-to-wav-test.wav";
108-
output_to_wav(&mut make_source(), wav_file_path).expect("output file can be written");
108+
wav_to_file(&mut make_source(), wav_file_path).expect("output file can be written");
109109

110110
let file = std::fs::File::open(wav_file_path).expect("output file can be opened");
111111
// Not using crate::Decoder bcause it is limited to i16 samples.

0 commit comments

Comments
 (0)