extern crate civil; use civil::structural; use civil::structural::beams::Beam; const PRECISION: f64 = 0.01; #[test] fn we_can_test() { assert!(true) } #[test] fn polygonal_beam_area() { let rect_beam = dbg!(structural::beams::PolygonalBeam::new(2.0, 4)); assert!((rect_beam.area() - 4.0).abs() < PRECISION) } // TODO: Test for beams having correct properties for each type.