aboutsummaryrefslogtreecommitdiff
path: root/tests/list_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/list_check.c')
-rw-r--r--tests/list_check.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/list_check.c b/tests/list_check.c
index 08bb09d5..04b337d0 100644
--- a/tests/list_check.c
+++ b/tests/list_check.c
@@ -201,15 +201,14 @@ static int test_lists(int num_items)
l = check[i].l;
refl = find_refl(list, h, k, l);
- printf("%i copies remaining, %p\n", check[i].num, refl);
-
do {
int j;
signed int ha, ka, la;
+ Reflection *next;
get_indices(refl, &ha, &ka, &la);
- printf("removing %p %i %i %i\n", refl, ha, ka, la);
+ next = next_found_refl(refl);
delete_refl(refl);
- refl = next_found_refl(refl);
+ refl = next;
for ( j=0; j<num_items; j++ ) {
if ( (check[j].h == h) && (check[j].k == k)
&& (check[j].l == l) ) check[j].num--;