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

Function test_scale

tests/test_transform.rs:61–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60#[test]
61fn test_scale() {
62 let input = b"\
63 POINT(0 0)\n\
64 POINT(1 0)\n\
65 POINT(0 2)\n\
66 ";
67 let expected = "\
68 POINT(0 0)\n\
69 POINT(2 0)\n\
70 POINT(0 4)\n\
71 ";
72 let output = tool("transform")
73 .arg("--scale=2")
74 .write_stdin(input)
75 .captured_output();
76 assert!(output.status.success());
77 let stdout = String::from_utf8_lossy(&output.stdout);
78 assert_eq!(expected, stdout);
79}
80
81#[test]
82fn test_offset() {

Callers

nothing calls this directly

Calls 2

toolFunction · 0.85
captured_outputMethod · 0.80

Tested by

no test coverage detected