File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,10 @@ mod tests {
178
178
let buffer = context. start_rendering_sync ( ) ;
179
179
180
180
let left = buffer. get_channel_data ( 0 ) ;
181
- assert_float_eq ! ( & left[ .. ] , & [ 2. ; 128 ] [ ..] , abs_all <= 0. ) ;
181
+ assert_float_eq ! ( left, & [ 2. ; 128 ] [ ..] , abs_all <= 0. ) ;
182
182
183
183
let right = buffer. get_channel_data ( 1 ) ;
184
- assert_float_eq ! ( & right[ .. ] , & [ 3. ; 128 ] [ ..] , abs_all <= 0. ) ;
184
+ assert_float_eq ! ( right, & [ 3. ; 128 ] [ ..] , abs_all <= 0. ) ;
185
185
}
186
186
187
187
#[ test]
@@ -209,7 +209,7 @@ mod tests {
209
209
let buffer = context. start_rendering_sync ( ) ;
210
210
211
211
let left = buffer. get_channel_data ( 0 ) ;
212
- assert_float_eq ! ( & left[ .. ] , & vec![ 2. ; length] [ ..] , abs_all <= 0. ) ;
212
+ assert_float_eq ! ( left, & vec![ 2. ; length] [ ..] , abs_all <= 0. ) ;
213
213
214
214
let right = buffer. get_channel_data ( 1 ) ;
215
215
assert_float_eq ! (
Original file line number Diff line number Diff line change @@ -189,6 +189,6 @@ mod tests {
189
189
let buffer = context. start_rendering_sync ( ) ;
190
190
191
191
let mono = buffer. get_channel_data ( 0 ) ;
192
- assert_float_eq ! ( & mono[ .. ] , & [ -1. ; 128 ] [ ..] , abs_all <= 0. ) ;
192
+ assert_float_eq ! ( mono, & [ -1. ; 128 ] [ ..] , abs_all <= 0. ) ;
193
193
}
194
194
}
You can’t perform that action at this time.
0 commit comments