Browse code

fixup! Rename choices_free to choices_destroy

John Hawthorn authored on 17/05/2016 02:05:50
Showing 1 changed files

... ...
@@ -129,7 +129,7 @@ void test_choices_empty() {
129 129
 	choices_next(&choices);
130 130
 	assert(choices.selection == 0);
131 131
 
132
-	choices_free(&choices);
132
+	choices_destroy(&choices);
133 133
 }
134 134
 
135 135
 void test_choices_1() {
... ...
@@ -154,7 +154,7 @@ void test_choices_1() {
154 154
 	assert(!strcmp(choices_get(&choices, 0), "tags"));
155 155
 	assert(choices_get(&choices, 1) == NULL);
156 156
 
157
-	choices_free(&choices);
157
+	choices_destroy(&choices);
158 158
 }
159 159
 
160 160
 void test_choices_2() {
... ...
@@ -204,7 +204,7 @@ void test_choices_2() {
204 204
 	assert_streq(choices_get(&choices, 0), "test");
205 205
 	assert_streq(choices_get(&choices, 1), "tags");
206 206
 
207
-	choices_free(&choices);
207
+	choices_destroy(&choices);
208 208
 }
209 209
 
210 210
 void test_choices_without_search() {
... ...
@@ -225,7 +225,7 @@ void test_choices_without_search() {
225 225
 	assert(choices.size == 1);
226 226
 	assert(choices_get(&choices, 0) == NULL);
227 227
 
228
-	choices_free(&choices);
228
+	choices_destroy(&choices);
229 229
 }
230 230
 
231 231
 void summary() {