Write units tests

This commit is contained in:
Benjamin Herman 2022-07-09 13:06:29 -07:00
parent 53b1ae7524
commit 54db766751
No known key found for this signature in database
GPG key ID: A2D1938EC56DBF49
3 changed files with 66 additions and 2 deletions

View file

@ -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);