()
| 34 | |
| 35 | #[test] |
| 36 | fn 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] |
| 59 | fn test_snap_graph_to_grid() { |
nothing calls this directly
no test coverage detected