()
| 4 | |
| 5 | #[test] |
| 6 | fn test_rotate_about_origin() { |
| 7 | let input = b"POINT(1 0)\n"; |
| 8 | let expected = "POINT(-1 0.00000000000000012246467991473532)\n"; |
| 9 | |
| 10 | let output = tool("transform") |
| 11 | .arg("--center=origin") |
| 12 | .arg("--rotation=180") |
| 13 | .write_stdin(input) |
| 14 | .captured_output(); |
| 15 | assert!(output.status.success()); |
| 16 | let stdout = String::from_utf8_lossy(&output.stdout); |
| 17 | assert_eq!(expected, stdout); |
| 18 | } |
| 19 | |
| 20 | #[test] |
| 21 | fn test_rotate_about_geom_bbox_center() { |
nothing calls this directly
no test coverage detected