diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-08 14:04:11 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-08 14:04:11 +0200 |
| commit | 2edc8c01fba711f4410279b59c784a43cf2dde41 (patch) | |
| tree | 67d6404c4f768ad8b1b4e4916e3b9af9f892a7aa /test/04_compose/compose_tests.c | |
| parent | 9ef630eefb683dcdbe56e96e51b10bf356f20505 (diff) | |
| download | nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.tar.gz nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.zip | |
Added write to SRC format
Diffstat (limited to 'test/04_compose/compose_tests.c')
| -rw-r--r-- | test/04_compose/compose_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/04_compose/compose_tests.c b/test/04_compose/compose_tests.c index 575c2c9..a4a5f00 100644 --- a/test/04_compose/compose_tests.c +++ b/test/04_compose/compose_tests.c | |||
| @@ -11,9 +11,9 @@ int main() { | |||
| 11 | cube_t c1, c2, c3; | 11 | cube_t c1, c2, c3; |
| 12 | 12 | ||
| 13 | fgets(str, STRLENMAX, stdin); | 13 | fgets(str, STRLENMAX, stdin); |
| 14 | c1 = readcube(str); | 14 | c1 = readcube(H48, str); |
| 15 | fgets(str, STRLENMAX, stdin); | 15 | fgets(str, STRLENMAX, stdin); |
| 16 | c2 = readcube(str); | 16 | c2 = readcube(H48, str); |
| 17 | 17 | ||
| 18 | c3 = compose(c1, c2); | 18 | c3 = compose(c1, c2); |
| 19 | 19 | ||
| @@ -22,7 +22,7 @@ int main() { | |||
| 22 | } else if (!issolvable(c3)) { | 22 | } else if (!issolvable(c3)) { |
| 23 | printf("Composed cube is not solvable\n"); | 23 | printf("Composed cube is not solvable\n"); |
| 24 | } else { | 24 | } else { |
| 25 | writecube(c3, str); | 25 | writecube(H48, c3, str); |
| 26 | printf("%s\n", str); | 26 | printf("%s\n", str); |
| 27 | } | 27 | } |
| 28 | 28 | ||
