Skip to content

Commit

Permalink
remove defunct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 25, 2024
1 parent c06de6b commit 1ccca3f
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}

0 comments on commit 1ccca3f

Please sign in to comment.