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

Function test_offset

tests/test_transform.rs:82–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81#[test]
82fn test_offset() {
83 let input = b"\
84 POINT(0 0)\n\
85 ";
86 let expected = "\
87 POINT(1 -1)\n\
88 ";
89 let output = tool("transform")
90 .arg("--offset-x=1")
91 .arg("--offset-y=-1")
92 .write_stdin(input)
93 .captured_output();
94 assert!(output.status.success());
95 let stdout = String::from_utf8_lossy(&output.stdout);
96 assert_eq!(expected, stdout);
97}
98
99#[test]
100fn test_skew_x() {

Callers

nothing calls this directly

Calls 2

toolFunction · 0.85
captured_outputMethod · 0.80

Tested by

no test coverage detected