use super::*;
#[test]
fn rejects_transform_that_step_operator_cannot_represent() {
let anisotropic = Transform {
rows: [
[2.0, 0.0, 0.0, 0.0],
[0.0, 3.0, 0.0, 0.0],
[0.0, 0.0, 2.0, 0.0],
[0.0, 0.0, 0.0, 1.0],
],
};
let curve = CurveGeometry::Transformed {
basis: Box::new(CurveGeometry::Line {
origin: Point3::new(0.0, 0.0, 0.0),
direction: Vector3::new(1.0, 0.0, 0.0),
}),
transform: anisotropic,
};
assert!(!curve_is_supported(&curve));
}