File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,20 +92,20 @@ pub fn wav_to_writer(
9292
9393#[ cfg( test) ]
9494mod 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.
You can’t perform that action at this time.
0 commit comments