Write units tests
This commit is contained in:
parent
53b1ae7524
commit
54db766751
3 changed files with 66 additions and 2 deletions
|
|
@ -67,6 +67,9 @@
|
|||
#[cfg(feature = "alloc")]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
/// A wrapper around a validated instance
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||
pub struct Valid<T>(T);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue