summaryrefslogtreecommitdiff
path: root/src/03/matrix_test.c
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-09-26 20:10:19 -0600
committermo khan <mo.khan@gmail.com>2020-09-26 20:10:19 -0600
commitcf2dec12cbba79d427343436a0b1aedfb8294120 (patch)
tree958e27516255cc0f98494d5df0c2b8b0ef9cb54c /src/03/matrix_test.c
parent4090ab734dafb584fc7d2b882fdcd9e7093463a1 (diff)
style: run cclang formatter
Diffstat (limited to 'src/03/matrix_test.c')
-rw-r--r--src/03/matrix_test.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/03/matrix_test.c b/src/03/matrix_test.c
index 9397070..6d741e8 100644
--- a/src/03/matrix_test.c
+++ b/src/03/matrix_test.c
@@ -6,22 +6,22 @@ Ensure(every_edge_is_traversed_in_both_directions_at_least_once) {
int n = 16;
int visited[16] = {0};
int graph[16][16] = {
- {0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0},
- {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
- {0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0},
- {0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0},
- {1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
- {1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0},
- {0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,0},
- {0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0},
- {0,0,0,0,1,0,0,0,0,1,0,0,1,1,0,0},
- {0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0},
- {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
- {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0},
- {0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1},
- {0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0},
+ {0, 1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