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/001_pieces | |
| parent | 93522effba2f200257141189de5925a23fca93b8 (diff) | |
| download | nissy-core-bab22e1946a656088804b61cf765461b48744971.tar.gz nissy-core-bab22e1946a656088804b61cf765461b48744971.zip | |
Update tests for oriented_cube_t
Diffstat (limited to 'test/001_pieces')
| -rw-r--r-- | test/001_pieces/pieces_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/001_pieces/pieces_tests.c b/test/001_pieces/pieces_tests.c index 452a11b..f46a143 100644 --- a/test/001_pieces/pieces_tests.c +++ b/test/001_pieces/pieces_tests.c | |||
| @@ -6,7 +6,7 @@ void run(void) { | |||
| 6 | int i; | 6 | int i; |
| 7 | uint8_t corner[8], edge[12]; | 7 | uint8_t corner[8], edge[12]; |
| 8 | char str[STRLENMAX], *aux; | 8 | char str[STRLENMAX], *aux; |
| 9 | cube_t cube; | 9 | oriented_cube_t cube; |
| 10 | 10 | ||
| 11 | aux = str; | 11 | aux = str; |
| 12 | while (fgets(aux, STRLENMAX, stdin) != NULL) | 12 | while (fgets(aux, STRLENMAX, stdin) != NULL) |
| @@ -14,7 +14,7 @@ void run(void) { | |||
| 14 | aux++; | 14 | aux++; |
| 15 | 15 | ||
| 16 | cube = readcube(str); | 16 | cube = readcube(str); |
| 17 | pieces(&cube, corner, edge); | 17 | pieces(&cube.cube, corner, edge); |
| 18 | 18 | ||
| 19 | for (i = 0; i < 8; i++) | 19 | for (i = 0; i < 8; i++) |
| 20 | printf("%" PRIu8 " ", corner[i]); | 20 | printf("%" PRIu8 " ", corner[i]); |
