aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/cellcompare_check.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/cellcompare_check.c b/tests/cellcompare_check.c
index 962566a9..4b9ba869 100644
--- a/tests/cellcompare_check.c
+++ b/tests/cellcompare_check.c
@@ -295,7 +295,11 @@ int main(int argc, char *argv[])
rtnl_mtx_free(tr);
tr = random_reindexing(rng);
cell = cell_transform_rational(cref, tr);
- } while ( cell_get_centering(cell) == '?' );
+ } while ( (cell_get_centering(cell) == '?')
+ || (cell_get_centering(cell) == 'H' ) );
+ /* H centering is no good because it needs a unique axis to
+ * be specified in order for uncentering in c_r_c_p to work.
+ * cell_transform_rational doesn't set the unique axis (yet?) */
if ( check_ccp(cell, cref, tols, rtnl_mtx_is_identity(tr)) ) return 1;
if ( check_cpcp(cell, cref, tols, rtnl_mtx_is_perm(tr)) ) return 1;
@@ -324,7 +328,8 @@ int main(int argc, char *argv[])
rtnl_mtx_free(tr);
tr = random_reindexing(rng);
cell = cell_transform_rational(cell2, tr);
- } while ( cell_get_centering(cell) == '?' );
+ } while ( (cell_get_centering(cell) == '?')
+ || (cell_get_centering(cell) == 'H' ) ); /* See above */
cell_free(cell2);
if ( check_ccp(cell, cref, tols, rtnl_mtx_is_identity(tr)) ) return 1;