aboutsummaryrefslogtreecommitdiff
path: root/test/050_compose
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-22 16:12:21 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-22 16:12:21 +0200
commitbab22e1946a656088804b61cf765461b48744971 (patch)
tree43ae3798e5c2f4fc63e68df72d134e742fcaf834 /test/050_compose
parent93522effba2f200257141189de5925a23fca93b8 (diff)
downloadnissy-core-bab22e1946a656088804b61cf765461b48744971.tar.gz
nissy-core-bab22e1946a656088804b61cf765461b48744971.zip
Update tests for oriented_cube_t
Diffstat (limited to 'test/050_compose')
-rw-r--r--test/050_compose/compose_tests.c7
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
5void run(void) { 5void 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");

Generated with cgit - Back to sebastiano.tronto.net