diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-17 08:54:44 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-17 08:54:44 +0200 |
| commit | 270e5b0444f67781856bf80db51650af9cb89b0c (patch) | |
| tree | 1f895ca8fdbf256dcdf550dd0a28ca99993efc08 /test/104_cocsep_ttrep | |
| parent | 2d0ab15ac1f81c76cb6bb31bbdad3d2ee339e062 (diff) | |
| download | nissy-core-270e5b0444f67781856bf80db51650af9cb89b0c.tar.gz nissy-core-270e5b0444f67781856bf80db51650af9cb89b0c.zip | |
Renamed tests to make space for more coordinate tests
Diffstat (limited to 'test/104_cocsep_ttrep')
| -rw-r--r-- | test/104_cocsep_ttrep/00_all.in | 0 | ||||
| -rw-r--r-- | test/104_cocsep_ttrep/00_all.out | 0 | ||||
| -rw-r--r-- | test/104_cocsep_ttrep/cocsep_ttrep_tests.c | 34 |
3 files changed, 0 insertions, 34 deletions
diff --git a/test/104_cocsep_ttrep/00_all.in b/test/104_cocsep_ttrep/00_all.in deleted file mode 100644 index e69de29..0000000 --- a/test/104_cocsep_ttrep/00_all.in +++ /dev/null | |||
diff --git a/test/104_cocsep_ttrep/00_all.out b/test/104_cocsep_ttrep/00_all.out deleted file mode 100644 index e69de29..0000000 --- a/test/104_cocsep_ttrep/00_all.out +++ /dev/null | |||
diff --git a/test/104_cocsep_ttrep/cocsep_ttrep_tests.c b/test/104_cocsep_ttrep/cocsep_ttrep_tests.c deleted file mode 100644 index 87975a4..0000000 --- a/test/104_cocsep_ttrep/cocsep_ttrep_tests.c +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | uint8_t inverse_trans(uint8_t); | ||
| 4 | cube_t transform_corners(cube_t, uint8_t); | ||
| 5 | int64_t coord_cocsep(cube_t); | ||
| 6 | size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); | ||
| 7 | |||
| 8 | void run(void) { | ||
| 9 | uint8_t t; | ||
| 10 | unsigned char buf[2000000]; | ||
| 11 | uint32_t *cocsepdata, tt; | ||
| 12 | uint64_t i, selfsim[COCSEP_CLASSES]; | ||
| 13 | int64_t j, k, l; | ||
| 14 | cube_t rep[COCSEP_CLASSES], c, d; | ||
| 15 | |||
| 16 | gendata_cocsep(buf, selfsim, rep); | ||
| 17 | cocsepdata = (uint32_t *)((char *)buf + INFOSIZE); | ||
| 18 | |||
| 19 | for (i = 0; i < COCSEP_CLASSES; i++) { | ||
| 20 | c = rep[i]; | ||
| 21 | for (t = 0; t < 48; t++) { | ||
| 22 | d = transform_corners(c, t); | ||
| 23 | j = coord_cocsep(d); | ||
| 24 | tt = TTREP(cocsepdata[j]); | ||
| 25 | d = transform_corners(d, tt); | ||
| 26 | k = coord_cocsep(d); | ||
| 27 | l = coord_cocsep(c); | ||
| 28 | if (k != l) | ||
| 29 | printf("cocsep %" PRId64 " (%" PRId64 "): " | ||
| 30 | "%" PRId64 " ttrep %" PRIu32 | ||
| 31 | " -> %" PRId64 "\n", i, l, j, tt, k); | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
