Move tests into the tests/ directory
This commit is contained in:
parent
fd52ae0d64
commit
f11ba0c41f
|
|
@ -45,7 +45,6 @@ use std::io::{Write, Read};
|
||||||
mod writer;
|
mod writer;
|
||||||
mod reader;
|
mod reader;
|
||||||
mod refbox;
|
mod refbox;
|
||||||
#[cfg(test)] mod test;
|
|
||||||
|
|
||||||
/// A limit on the amount of bytes that can be read or written.
|
/// A limit on the amount of bytes that can be read or written.
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
|
extern crate bincode;
|
||||||
|
extern crate rustc_serialize;
|
||||||
|
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
use rustc_serialize::{Encoder, Decoder, Encodable, Decodable};
|
use rustc_serialize::{Encoder, Decoder, Encodable, Decodable};
|
||||||
|
|
||||||
use super::{
|
use bincode::{
|
||||||
encode,
|
encode,
|
||||||
decode,
|
decode,
|
||||||
decode_from,
|
decode_from,
|
||||||
|
|
@ -16,7 +19,7 @@ use super::{
|
||||||
SliceBox,
|
SliceBox,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::SizeLimit::{Infinite, Bounded};
|
use bincode::SizeLimit::{Infinite, Bounded};
|
||||||
|
|
||||||
fn the_same<V>(element: V)
|
fn the_same<V>(element: V)
|
||||||
where V: Encodable+Decodable+PartialEq+Debug+'static
|
where V: Encodable+Decodable+PartialEq+Debug+'static
|
||||||
Loading…
Reference in New Issue