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

Function test_polar

tests/test_transform.rs:117–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116#[test]
117fn test_polar() {
118 let input = b"\
119 LINESTRING(0 0, 0 1)\n\
120 ";
121 let expected = "\
122 LINESTRING(0 0,1 1.5707963267948966)\n\
123 ";
124 let output = tool("transform")
125 .arg("--to-polar")
126 .write_stdin(input)
127 .captured_output();
128 assert!(output.status.success());
129 let stdout = String::from_utf8_lossy(&output.stdout);
130 assert_eq!(expected, stdout);
131}
132
133#[test]
134fn fit_to_range() {

Callers

nothing calls this directly

Calls 2

toolFunction · 0.85
captured_outputMethod · 0.80

Tested by

no test coverage detected