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/040_inverse_cube | |
| parent | 93522effba2f200257141189de5925a23fca93b8 (diff) | |
| download | nissy-core-bab22e1946a656088804b61cf765461b48744971.tar.gz nissy-core-bab22e1946a656088804b61cf765461b48744971.zip | |
Update tests for oriented_cube_t
Diffstat (limited to 'test/040_inverse_cube')
| -rw-r--r-- | test/040_inverse_cube/inverse_tests.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/040_inverse_cube/inverse_tests.c b/test/040_inverse_cube/inverse_tests.c index 9e8925a..f0401ea 100644 --- a/test/040_inverse_cube/inverse_tests.c +++ b/test/040_inverse_cube/inverse_tests.c | |||
| @@ -4,11 +4,14 @@ cube_t inverse(cube_t); | |||
| 4 | 4 | ||
| 5 | void run(void) { | 5 | void run(void) { |
| 6 | char str[STRLENMAX]; | 6 | char str[STRLENMAX]; |
| 7 | cube_t cube, inv; | 7 | oriented_cube_t cube, inv; |
| 8 | 8 | ||
| 9 | fgets(str, STRLENMAX, stdin); | 9 | fgets(str, STRLENMAX, stdin); |
| 10 | cube = readcube(str); | 10 | cube = readcube(str); |
| 11 | inv = inverse(cube); | 11 | inv = (oriented_cube_t) { |
| 12 | .cube = inverse(cube.cube), | ||
| 13 | .orientation = cube.orientation | ||
| 14 | }; | ||
| 12 | 15 | ||
| 13 | if (iserror(inv)) { | 16 | if (iserror(inv)) { |
| 14 | printf("Error inverting cube\n"); | 17 | printf("Error inverting cube\n"); |
