diff --git a/src/types.rs b/src/types.rs index 3a775e7..1814cca 100644 --- a/src/types.rs +++ b/src/types.rs @@ -65,40 +65,3 @@ pub enum ReferenceCellType { /// A square-based pyramid Pyramid, } - -#[cfg(test)] -mod test { - use super::*; - #[test] - fn test_continuity() { - for c in [Continuity::Standard, Continuity::Discontinuous] { - assert_eq!(c, Continuity::from(c as u8).unwrap()); - } - } - #[test] - fn test_reference_cell_type() { - for c in [ - ReferenceCellType::Point, - ReferenceCellType::Interval, - ReferenceCellType::Triangle, - ReferenceCellType::Quadrilateral, - ReferenceCellType::Tetrahedron, - ReferenceCellType::Hexahedron, - ReferenceCellType::Prism, - ReferenceCellType::Pyramid, - ] { - assert_eq!(c, ReferenceCellType::from(c as u8).unwrap()); - } - } - #[test] - fn test_map_type() { - for m in [ - MapType::Identity, - MapType::CovariantPiola, - MapType::ContravariantPiola, - MapType::L2Piola, - ] { - assert_eq!(m, MapType::from(m as u8).unwrap()); - } - } -}