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

Function test_triangle

tests/test_grid.rs:117–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116#[test]
117fn test_triangle() {
118 let expected = "\
119 POINT(0 0)\n\
120 POINT(1 0)\n\
121 POINT(2 0)\n\
122 POINT(0 1)\n\
123 POINT(1 1)\n\
124 POINT(2 1)\n\
125 POINT(0 2)\n\
126 POINT(1 2)\n\
127 POINT(2 2)\n\
128 ";
129
130 let output = tool("grid")
131 .arg("--grid-type=quad")
132 .arg("--output-format=points")
133 .arg("--width=2")
134 .arg("--height=2")
135 .captured_output();
136 assert!(output.status.success());
137 let stdout = String::from_utf8_lossy(&output.stdout);
138 assert_eq!(expected, stdout);
139}
140
141#[test]
142fn test_quad() {

Callers

nothing calls this directly

Calls 2

toolFunction · 0.85
captured_outputMethod · 0.80

Tested by

no test coverage detected