Skip to content

Commit da127bb

Browse files
committed
Updated tests
1 parent 3fb074b commit da127bb

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

src/dsp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ mod tests {
383383
fn test_rate_overflow() {
384384

385385
let result = resample_with_filter(
386-
&mut Context::resample(|| {}, false, false), // Dummy context, not important
386+
&mut Context::resample(|_,_| {}, false, false), // Dummy context, not important
387387
&vec![0.0; 1000],
388388
Rate::hz(99371), // Two primes as sample rates
389389
Rate::hz(93911),
@@ -403,7 +403,7 @@ mod tests {
403403
#[test]
404404
fn test_fast_resampling() {
405405
let result = fast_resampling(
406-
&mut Context::resample(|| {}, false, false), // Dummy context, not important
406+
&mut Context::resample(|_,_| {}, false, false), // Dummy context, not important
407407
&vec![0.0; 1000], // signal
408408
3, // l
409409
2, // m
@@ -420,7 +420,7 @@ mod tests {
420420
#[test]
421421
fn test_fast_resampling_short() {
422422
let result = fast_resampling(
423-
&mut Context::resample(|| {}, false, false), // Dummy context, not important
423+
&mut Context::resample(|_,_| {}, false, false), // Dummy context, not important
424424
&vec![0.0; 100], // signal
425425
3, // l
426426
2, // m

src/misc.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -209,40 +209,6 @@ mod tests {
209209
assert_relative_eq!(bessel_i0(7.), 168.593908510290, max_relative = tolerance);
210210
}
211211

212-
#[test]
213-
#[should_panic]
214-
fn access_denied_across_thread() {
215-
let data = 1;
216-
let guard = ThreadGuard::new(data);
217-
218-
thread::spawn(move || {
219-
guard.borrow();
220-
})
221-
.join()
222-
.unwrap();
223-
}
224-
225-
#[test]
226-
fn access_granted_from_correct_thread() {
227-
let data = 1;
228-
let guard = ThreadGuard::new(data);
229-
230-
guard.borrow();
231-
}
232-
233-
#[test]
234-
fn can_mutate() {
235-
let data = 1;
236-
let guard = ThreadGuard::new(data);
237-
238-
{
239-
let mut data = guard.borrow_mut();
240-
*data = 4;
241-
}
242-
243-
assert_eq!(*guard.borrow(), 4);
244-
}
245-
246212
#[test]
247213
fn test_percent() {
248214

0 commit comments

Comments
 (0)