@@ -899,8 +899,7 @@ mod tests {
899
899
fn test_sub_quantum_start_2 ( ) {
900
900
let sample_rate = 44_100. ;
901
901
let length_in_seconds = 4. ;
902
- let mut context =
903
- OfflineAudioContext :: new ( 2 , ( length_in_seconds * sample_rate) as usize , sample_rate) ;
902
+ let mut context = OfflineAudioContext :: new ( 2 , ( length_in_seconds * sample_rate) as usize , sample_rate) ;
904
903
905
904
let mut dirac = context. create_buffer ( 2 , 512 , sample_rate) ;
906
905
dirac. copy_to_channel ( & [ 1. ] , 0 ) ;
@@ -926,11 +925,7 @@ mod tests {
926
925
// assert we got our dirac at each defined offsets
927
926
928
927
sample_offsets. iter ( ) . for_each ( |index| {
929
- assert_ne ! (
930
- channel_left[ * index] , 0. ,
931
- "non zero sample at index {:?}" ,
932
- index
933
- ) ;
928
+ assert_ne ! ( channel_left[ * index] , 0. , "non zero sample at index {:?}" , index) ;
934
929
} ) ;
935
930
}
936
931
@@ -979,7 +974,6 @@ mod tests {
979
974
assert_float_eq ! ( channel[ ..] , expected[ ..] , abs_all <= 0. ) ;
980
975
}
981
976
982
- // this is now failing somehow...
983
977
#[ test]
984
978
fn test_sub_quantum_stop_slow_track ( ) {
985
979
let sample_rate = 48_000. ;
0 commit comments