trackler 2.2.1.161 → 2.2.1.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/tracks/c/config.json +1 -0
- data/tracks/c/exercises/minesweeper/src/example.c +6 -0
- data/tracks/c/exercises/minesweeper/src/example.h +1 -0
- data/tracks/c/exercises/minesweeper/test/test_minesweeper.c +11 -17
- data/tracks/c/exercises/word-count/src/word_count.h +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b0f3914ed0507205511f5d2b4c3cf1216af589b
|
4
|
+
data.tar.gz: dc3375041de356a74a5c00d445b4206c948aba60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 563678d4ddf4f37de1d3103ce49c59744bfe20ae6a11ae45db829df3fff8586315f51912edea14dcd468f0cf6933f468eec555d3521f8036e1a297309f36236c
|
7
|
+
data.tar.gz: 879532e919e270cc49831f1c225f981c68067a866d8b5ad5d22ca3bbcf9a3a702f3e6a2db6c34dba00b320215f1d37d9cc9df6209c4935d905ddcaddc1834a60
|
data/lib/trackler/version.rb
CHANGED
data/tracks/c/config.json
CHANGED
@@ -12,12 +12,6 @@ void tearDown(void)
|
|
12
12
|
{
|
13
13
|
}
|
14
14
|
|
15
|
-
static void free_all(char **field)
|
16
|
-
{
|
17
|
-
free(field[0]);
|
18
|
-
free(field);
|
19
|
-
}
|
20
|
-
|
21
15
|
void test_annotate_no_rows(void)
|
22
16
|
{
|
23
17
|
const char **minefield = NULL;
|
@@ -36,7 +30,7 @@ void test_annotate_no_columns(void)
|
|
36
30
|
const size_t rows = ARRAY_SIZE(expected);
|
37
31
|
char **actual = annotate(minefield, rows);
|
38
32
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
39
|
-
|
33
|
+
free_annotation(actual);
|
40
34
|
}
|
41
35
|
|
42
36
|
void test_annotate_no_mines(void)
|
@@ -55,7 +49,7 @@ void test_annotate_no_mines(void)
|
|
55
49
|
const size_t rows = ARRAY_SIZE(expected);
|
56
50
|
char **actual = annotate(minefield, rows);
|
57
51
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
58
|
-
|
52
|
+
free_annotation(actual);
|
59
53
|
}
|
60
54
|
|
61
55
|
void test_annotate_minefield_with_only_mines(void)
|
@@ -74,7 +68,7 @@ void test_annotate_minefield_with_only_mines(void)
|
|
74
68
|
const size_t rows = ARRAY_SIZE(expected);
|
75
69
|
char **actual = annotate(minefield, rows);
|
76
70
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
77
|
-
|
71
|
+
free_annotation(actual);
|
78
72
|
}
|
79
73
|
|
80
74
|
void test_annotate_mine_surrounded_by_spaces(void)
|
@@ -93,7 +87,7 @@ void test_annotate_mine_surrounded_by_spaces(void)
|
|
93
87
|
const size_t rows = ARRAY_SIZE(expected);
|
94
88
|
char **actual = annotate(minefield, rows);
|
95
89
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
96
|
-
|
90
|
+
free_annotation(actual);
|
97
91
|
}
|
98
92
|
|
99
93
|
void test_annotate_space_surrounded_by_mines(void)
|
@@ -112,7 +106,7 @@ void test_annotate_space_surrounded_by_mines(void)
|
|
112
106
|
const size_t rows = ARRAY_SIZE(expected);
|
113
107
|
char **actual = annotate(minefield, rows);
|
114
108
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
115
|
-
|
109
|
+
free_annotation(actual);
|
116
110
|
}
|
117
111
|
|
118
112
|
void test_annotate_horizontal_line(void)
|
@@ -127,7 +121,7 @@ void test_annotate_horizontal_line(void)
|
|
127
121
|
const size_t rows = ARRAY_SIZE(expected);
|
128
122
|
char **actual = annotate(minefield, rows);
|
129
123
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
130
|
-
|
124
|
+
free_annotation(actual);
|
131
125
|
}
|
132
126
|
|
133
127
|
void test_annotate_horizontal_line_mines_at_edges(void)
|
@@ -142,7 +136,7 @@ void test_annotate_horizontal_line_mines_at_edges(void)
|
|
142
136
|
const size_t rows = ARRAY_SIZE(expected);
|
143
137
|
char **actual = annotate(minefield, rows);
|
144
138
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
145
|
-
|
139
|
+
free_annotation(actual);
|
146
140
|
}
|
147
141
|
|
148
142
|
void test_annotate_vertical_line(void)
|
@@ -165,7 +159,7 @@ void test_annotate_vertical_line(void)
|
|
165
159
|
const size_t rows = ARRAY_SIZE(expected);
|
166
160
|
char **actual = annotate(minefield, rows);
|
167
161
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
168
|
-
|
162
|
+
free_annotation(actual);
|
169
163
|
}
|
170
164
|
|
171
165
|
void test_annotate_vertical_line_mines_at_edges(void)
|
@@ -188,7 +182,7 @@ void test_annotate_vertical_line_mines_at_edges(void)
|
|
188
182
|
const size_t rows = ARRAY_SIZE(expected);
|
189
183
|
char **actual = annotate(minefield, rows);
|
190
184
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
191
|
-
|
185
|
+
free_annotation(actual);
|
192
186
|
}
|
193
187
|
|
194
188
|
void test_annotate_cross(void)
|
@@ -211,7 +205,7 @@ void test_annotate_cross(void)
|
|
211
205
|
const size_t rows = ARRAY_SIZE(expected);
|
212
206
|
char **actual = annotate(minefield, rows);
|
213
207
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
214
|
-
|
208
|
+
free_annotation(actual);
|
215
209
|
}
|
216
210
|
|
217
211
|
void test_annotate_large_minefield(void)
|
@@ -236,7 +230,7 @@ void test_annotate_large_minefield(void)
|
|
236
230
|
const size_t rows = ARRAY_SIZE(expected);
|
237
231
|
char **actual = annotate(minefield, rows);
|
238
232
|
TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, rows);
|
239
|
-
|
233
|
+
free_annotation(actual);
|
240
234
|
}
|
241
235
|
|
242
236
|
int main(void)
|