pub mod conversions;
mod op;
mod traits;
pub mod units;
pub mod prelude {
pub use crate::op::*;
pub use crate::traits::*;
pub use unit_system_derive::Unit;
}
#[cfg(test)]
mod tests {
use super::prelude::*;
use super::*;
#[test]
fn test_mmol_into_molecules() {
let mmol = units::MMol(32.0);
let molecules: units::MMolecules = mmol.convert_outer();
assert!(f64::abs(molecules.0 - units::MMolecules(32.0 * 6.022E23).0) < 1E18)
}
#[test]
fn test_nmol_into_base() {
let nmol = units::MMol(3.0);
assert!(f32::abs(nmol.to_base().0 - units::Mol(3. / 1E3).0) < 1E-7)
}
}