MCPcopy Create free account
hub / github.com/Notgnoshi/generative / test_rotate_about_origin

Function test_rotate_about_origin

tests/test_transform.rs:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[test]
6fn 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]
21fn test_rotate_about_geom_bbox_center() {

Callers

nothing calls this directly

Calls 2

toolFunction · 0.85
captured_outputMethod · 0.80

Tested by

no test coverage detected