diff options
Diffstat (limited to 'test/050_compose/compose_tests.c')
| -rw-r--r-- | test/050_compose/compose_tests.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/050_compose/compose_tests.c b/test/050_compose/compose_tests.c index c61775f..3dea055 100644 --- a/test/050_compose/compose_tests.c +++ b/test/050_compose/compose_tests.c | |||
| @@ -4,14 +4,17 @@ cube_t compose(cube_t, cube_t); | |||
| 4 | 4 | ||
| 5 | void run(void) { | 5 | void run(void) { |
| 6 | char str[STRLENMAX]; | 6 | char str[STRLENMAX]; |
| 7 | cube_t c1, c2, c3; | 7 | oriented_cube_t c1, c2, c3; |
| 8 | 8 | ||
| 9 | fgets(str, STRLENMAX, stdin); | 9 | fgets(str, STRLENMAX, stdin); |
| 10 | c1 = readcube(str); | 10 | c1 = readcube(str); |
| 11 | fgets(str, STRLENMAX, stdin); | 11 | fgets(str, STRLENMAX, stdin); |
| 12 | c2 = readcube(str); | 12 | c2 = readcube(str); |
| 13 | 13 | ||
| 14 | c3 = compose(c1, c2); | 14 | c3 = (oriented_cube_t) { |
| 15 | .cube = compose(c1.cube, c2.cube), | ||
| 16 | .orientation = c1.orientation | ||
| 17 | }; | ||
| 15 | 18 | ||
| 16 | if (iserror(c3)) { | 19 | if (iserror(c3)) { |
| 17 | printf("Error composing cubes\n"); | 20 | printf("Error composing cubes\n"); |
