diff options
Diffstat (limited to 'test/040_inverse_cube/inverse_tests.c')
| -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"); |
