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

Function test_snap_graph_duplicate_nodes

tests/test_snap.rs:36–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35#[test]
36fn test_snap_graph_duplicate_nodes() {
37 let input = b"\
38 1\tPOINT(0 0)\n\
39 2\tPOINT(0 0)\n\
40 #\n\
41 ";
42
43 let expected = "\
44 0\tPOINT(0 0)\n\
45 #\n\
46 ";
47
48 let output = tool("snap")
49 .arg("--input-format=tgf")
50 .arg("--tolerance=0.1")
51 .write_stdin(input)
52 .captured_output();
53 assert!(output.status.success());
54 let stdout = String::from_utf8_lossy(&output.stdout);
55 assert_eq!(expected, stdout);
56}
57
58#[test]
59fn test_snap_graph_to_grid() {

Callers

nothing calls this directly

Calls 2

toolFunction · 0.85
captured_outputMethod · 0.80

Tested by

no test coverage detected