aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-09 14:31:35 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commit9bff7af92f33701ae7d29a18709981254778ce43 (patch)
tree5c651407990b1d41ae90f2512a7f50a8465b08f1 /tests
parent09f4f09239da980928dc3fc52494b44382bcbca4 (diff)
Make lists work
Diffstat (limited to 'tests')
-rw-r--r--tests/list_check.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/list_check.c b/tests/list_check.c
index 5e593d0f..1292d114 100644
--- a/tests/list_check.c
+++ b/tests/list_check.c
@@ -53,6 +53,7 @@ static int test_lists(int num_items)
int j;
int duplicate = 0;
+ Reflection *refl;
if ( random() > RAND_MAX/2 ) {
h = RANDOM_INDEX;
@@ -78,7 +79,7 @@ static int test_lists(int num_items)
}
}
- add_refl(list, h, k, l);
+ refl = add_refl(list, h, k, l);
check[i].h = h;
check[i].k = k;
check[i].l = l;
@@ -86,10 +87,6 @@ static int test_lists(int num_items)
check[i].dup = duplicate;
check[i].found = 0;
- if ( (h==-45) && (k==55) && (l==73)) {
- printf("added, now %i %i\n", check[i].dup, i);
- }
-
}
/* Iterate over the list and check we find everything */
@@ -232,7 +229,7 @@ int main(int argc, char *argv[])
printf("Running list test...");
fflush(stdout);
- for ( i=0; i<1; i++ ) {
+ for ( i=0; i<100; i++ ) {
if ( test_lists(4096*random()/RAND_MAX) ) return 1;
}