mirror of https://git.sr.ht/~stygianentity/bincode
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 reader;
|
||||
mod refbox;
|
||||
#[cfg(test)] mod test;
|
||||
|
||||
/// 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::collections::HashMap;
|
||||
use std::ops::Deref;
|
||||
|
||||
use rustc_serialize::{Encoder, Decoder, Encodable, Decodable};
|
||||
|
||||
use super::{
|
||||
use bincode::{
|
||||
encode,
|
||||
decode,
|
||||
decode_from,
|
||||
|
|
@ -16,7 +19,7 @@ use super::{
|
|||
SliceBox,
|
||||
};
|
||||
|
||||
use super::SizeLimit::{Infinite, Bounded};
|
||||
use bincode::SizeLimit::{Infinite, Bounded};
|
||||
|
||||
fn the_same<V>(element: V)
|
||||
where V: Encodable+Decodable+PartialEq+Debug+'static
|
||||
Loading…
Reference in New Issue