mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
refactor, move test dep use into test mod
This commit is contained in:
parent
3c18b53a47
commit
7c39451138
2 changed files with 2 additions and 3 deletions
|
@ -137,6 +137,3 @@ pub use crate::source::Source;
|
||||||
pub use crate::spatial_sink::SpatialSink;
|
pub use crate::spatial_sink::SpatialSink;
|
||||||
pub use crate::stream::{OutputStream, OutputStreamHandle, PlayError, StreamError};
|
pub use crate::stream::{OutputStream, OutputStreamHandle, PlayError, StreamError};
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate approx;
|
|
||||||
|
|
|
@ -144,6 +144,8 @@ where
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use approx::assert_abs_diff_eq;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::buffer::SamplesBuffer;
|
use crate::buffer::SamplesBuffer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue