aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-10 14:06:05 +0200
committerThomas White <taw@physics.org>2012-10-10 14:07:06 +0200
commit8c8fb4cd5a2af475855bff42187d408f8df5de98 (patch)
treee31ae465d14b9746a6d7823c321e5736dfea86f8 /tests
parent8f50f49ed22b9adfc03a015f142c0e887e686e7b (diff)
Handle weird unique axis variants of all point groups
Diffstat (limited to 'tests')
-rw-r--r--tests/symmetry_check.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/symmetry_check.c b/tests/symmetry_check.c
index edbacbf1..648814d0 100644
--- a/tests/symmetry_check.c
+++ b/tests/symmetry_check.c
@@ -152,6 +152,7 @@ static void check_pg_props(const char *pg, int answer, int centro, int *fail)
if ( sym == NULL ) {
*fail = 1;
+ STATUS("%15s : NULL!\n", pg);
return;
}
@@ -273,7 +274,6 @@ int main(int argc, char *argv[])
check_pg_props( "-42m", 8, 0, &fail);
check_pg_props( "-4m2", 8, 0, &fail);
check_pg_props( "4/mmm", 16, 1, &fail);
- check_pg_props( "4/mmm_uaa", 16, 1, &fail);
STATUS("\n");
check_pg_props( "3_R", 3, 0, &fail);
@@ -392,5 +392,23 @@ int main(int argc, char *argv[])
check_subgroup("-3_R", "-1", 1, 1, 3, &fail);
check_subgroup("6", "2", 1, 1, 3, &fail);
+ /* Check some weird settings */
+ STATUS("\nWeird settings:\n");
+ check_pg_props( "2_uaa", 2, 0, &fail);
+ check_pg_props( "2_uab", 2, 0, &fail);
+ check_pg_props( "2_uac", 2, 0, &fail);
+ check_pg_props( "4_uaa", 4, 0, &fail);
+ check_pg_props( "4_uab", 4, 0, &fail);
+ check_pg_props( "4_uac", 4, 0, &fail);
+ check_pg_props( "4/m_uaa", 8, 1, &fail);
+ check_pg_props( "4/m_uab", 8, 1, &fail);
+ check_pg_props( "4/m_uac", 8, 1, &fail);
+
+ /* Check "new style" parsing */
+ STATUS("\nNew style:\n");
+ check_pg_props( "2 1 1", 2, 0, &fail);
+ check_pg_props( "1 2 1", 2, 0, &fail);
+ check_pg_props( "1 1 2", 2, 0, &fail);
+
return fail;
}