diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 16:12:21 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 16:12:21 +0200 |
| commit | bab22e1946a656088804b61cf765461b48744971 (patch) | |
| tree | 43ae3798e5c2f4fc63e68df72d134e742fcaf834 /test/102_cocsep_selfsim | |
| parent | 93522effba2f200257141189de5925a23fca93b8 (diff) | |
| download | nissy-core-bab22e1946a656088804b61cf765461b48744971.tar.gz nissy-core-bab22e1946a656088804b61cf765461b48744971.zip | |
Update tests for oriented_cube_t
Diffstat (limited to 'test/102_cocsep_selfsim')
| -rw-r--r-- | test/102_cocsep_selfsim/cocsep_selfsim_tests.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/102_cocsep_selfsim/cocsep_selfsim_tests.c b/test/102_cocsep_selfsim/cocsep_selfsim_tests.c index 9966321..1a1c6f2 100644 --- a/test/102_cocsep_selfsim/cocsep_selfsim_tests.c +++ b/test/102_cocsep_selfsim/cocsep_selfsim_tests.c | |||
| @@ -16,7 +16,8 @@ void run(void) { | |||
| 16 | uint32_t *cocsepdata, data; | 16 | uint32_t *cocsepdata, data; |
| 17 | int64_t coord, coclass; | 17 | int64_t coord, coclass; |
| 18 | uint64_t selfsim[COCSEP_CLASSES], sim, t; | 18 | uint64_t selfsim[COCSEP_CLASSES], sim, t; |
| 19 | cube_t cube, rep[COCSEP_CLASSES]; | 19 | oriented_cube_t cube; |
| 20 | cube_t rep[COCSEP_CLASSES]; | ||
| 20 | 21 | ||
| 21 | gendata_cocsep(buf, selfsim, rep); | 22 | gendata_cocsep(buf, selfsim, rep); |
| 22 | cocsepdata = (uint32_t *)(buf + INFOSIZE); | 23 | cocsepdata = (uint32_t *)(buf + INFOSIZE); |
| @@ -25,7 +26,7 @@ void run(void) { | |||
| 25 | 26 | ||
| 26 | while (fgets(str, STRLENMAX, stdin) != NULL) { | 27 | while (fgets(str, STRLENMAX, stdin) != NULL) { |
| 27 | cube = readcube(str); | 28 | cube = readcube(str); |
| 28 | coord = coord_cocsep(cube); | 29 | coord = coord_cocsep(cube.cube); |
| 29 | data = cocsepdata[coord]; | 30 | data = cocsepdata[coord]; |
| 30 | coclass = (data & (0xFFFU << 16)) >> 16; | 31 | coclass = (data & (0xFFFU << 16)) >> 16; |
| 31 | sim = selfsim[coclass]; | 32 | sim = selfsim[coclass]; |
